diff --git a/authentication.py b/authentication.py index d05c931..74d15b1 100644 --- a/authentication.py +++ b/authentication.py @@ -39,9 +39,6 @@ class PasswordTools: def check(self, username: str, password: str) -> bool: user = self.get_by_name(username) - if not user: - print("Wrong user") - return False user_pw = user.password_hash return argon2.verify(password, user_pw) diff --git a/controllers.py b/controllers.py index 7f409f3..f52fe3e 100644 --- a/controllers.py +++ b/controllers.py @@ -43,12 +43,10 @@ class App: return perm, user_id else: self.view.display_co_failed() - return None + quit() def start(self): team, user_id = self.connect() - if not user_id: - exit() if team == 1: CommercialMenu(self.customer_tools, self.contract_tools,