island: Make return values of Authenticate._authenticate() explicit

This commit is contained in:
Mike Salvatore 2021-05-04 11:58:58 -04:00
parent 9c1096daa1
commit 7684a2dcf8
1 changed files with 3 additions and 1 deletions

View File

@ -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):
"""