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