forked from p15670423/monkey
island: Make return values of Authenticate._authenticate() explicit
This commit is contained in:
parent
9c1096daa1
commit
7684a2dcf8
|
@ -34,7 +34,9 @@ class Authenticate(flask_restful.Resource):
|
|||
def _authenticate(username, password):
|
||||
user = user_store.UserStore.username_table.get(username, None)
|
||||
if user and bcrypt.checkpw(password.encode("utf-8"), user.secret.encode("utf-8")):
|
||||
return user
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue