island: Minor formatting fix

This commit is contained in:
Mike Salvatore 2021-05-04 12:32:07 -04:00
parent 904e51a365
commit 060c4b0c40
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ def _get_credentials_from_request(request):
def _credentials_match_registered_user(username, password): def _credentials_match_registered_user(username, password):
user = user_store.UserStore.username_table.get(username, None) user = user_store.UserStore.username_table.get(username, None)
if user and bcrypt.checkpw(password.encode("utf-8"), user.secret.encode("utf-8")): if user and bcrypt.checkpw(password.encode("utf-8"), user.secret.encode("utf-8")):
return True return True