コード例 #1
0
ファイル: check.py プロジェクト: KWMalik/codenode
 def getUser(self, user, creds):
     print 'getuser', user
     avatarId, hashedpass = str(user.id), str(user.password)
     if hashpass.check_password_against_hash(creds.password, hashedpass):
         self.cache[(creds.username, creds.password)] = avatarId
         return defer.succeed(avatarId)
     else:
         return defer.fail(error.UnauthorizedLogin())
コード例 #2
0
ファイル: check.py プロジェクト: yingjun2/codenode
 def getUser(self, user, creds):
     print 'getuser', user
     avatarId, hashedpass = str(user.id), str(user.password)
     if hashpass.check_password_against_hash(creds.password, hashedpass):
         self.cache[(creds.username, creds.password)] = avatarId
         return defer.succeed(avatarId)
     else:
         return defer.fail(error.UnauthorizedLogin())
コード例 #3
0
ファイル: check.py プロジェクト: KWMalik/codenode
 def getUser(self, user, creds):
     avatarId, hashedpass = str(user.id), str(user.password)
     if hashpass.check_password_against_hash(creds.password, hashedpass):
         return defer.succeed(avatarId)
     else:
         return defer.fail(error.UnauthorizedLogin())
コード例 #4
0
ファイル: check.py プロジェクト: yingjun2/codenode
 def getUser(self, user, creds):
     avatarId, hashedpass = str(user.id), str(user.password)
     if hashpass.check_password_against_hash(creds.password, hashedpass):
         return defer.succeed(avatarId)
     else:
         return defer.fail(error.UnauthorizedLogin())