コード例 #1
0
ファイル: dbfunc.py プロジェクト: Mb01/playground
def checkCred(username, password):
    user = User.all().filter("username =", username).get()
    if user:
        passMatch = testHash(user.password, password)
        if passMatch:
            return True, user.username, user.rating
    return False, None, None
コード例 #2
0
ファイル: dbfunc.py プロジェクト: Mb01/yasai
def checkCred(username, password):
    user = User.all().filter("username =", username).get()
    if user:
        passMatch = testHash(user.password, password)
        return passMatch
    return False
コード例 #3
0
ファイル: dbfunc.py プロジェクト: Mb01/yasai
def checkCred(username, password):
    user = User.all().filter("username =", username).get()
    if user:
        passMatch = testHash(user.password, password)
        return passMatch
    return False