Exemplo n.º 1
0
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
Exemplo n.º 2
0
Arquivo: dbfunc.py Projeto: Mb01/yasai
def checkCred(username, password):
    user = User.all().filter("username =", username).get()
    if user:
        passMatch = testHash(user.password, password)
        return passMatch
    return False
Exemplo n.º 3
0
Arquivo: dbfunc.py Projeto: Mb01/yasai
def checkCred(username, password):
    user = User.all().filter("username =", username).get()
    if user:
        passMatch = testHash(user.password, password)
        return passMatch
    return False