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
def checkCred(username, password): user = User.all().filter("username =", username).get() if user: passMatch = testHash(user.password, password) return passMatch return False