From 060c4b0c40fc76607781ffddb79fa73ab6fe13c6 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 4 May 2021 12:32:07 -0400 Subject: [PATCH] island: Minor formatting fix --- monkey/monkey_island/cc/resources/auth/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/monkey_island/cc/resources/auth/auth.py b/monkey/monkey_island/cc/resources/auth/auth.py index 4eedaa61f..5ffa4516c 100644 --- a/monkey/monkey_island/cc/resources/auth/auth.py +++ b/monkey/monkey_island/cc/resources/auth/auth.py @@ -58,6 +58,7 @@ def _get_credentials_from_request(request): def _credentials_match_registered_user(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 True