def user_auth(self, username, password):
"""
If the username exists it suthenticates the password of the user
"""
user = db.GqlQuery("SELECT * "
"FROM User "
"WHERE username = :usernm",
usernm=username).get()
if user:
return self.valid_pass_hash(user.username,
password,
user.pass_hash)
评论列表
文章目录