Esempio n. 1
0
 def get_auth_token(self):
     return util.encrypt(self.email)
Esempio n. 2
0
 def get_auth_token(self):
     return util.encrypt(self.email)
Esempio n. 3
0
 def authenticate(self, password):
     if not util.encrypt(password, self.password) == self.password:
         raise exception.Unauthorized('%s password mismatch' % self.email)
Esempio n. 4
0
 def authenticate(self, password):
     if not util.encrypt(password, self.password) == self.password:
         raise exception.Unauthorized('%s password mismatch' % self.email)