made auth test user/pw simplier

This commit is contained in:
2025-08-22 12:07:09 +02:00
parent ef2688b61a
commit 20b72f7288
2 changed files with 1 additions and 6 deletions

View File

@@ -39,9 +39,6 @@ class PasswordTools:
def check(self, username: str, password: str) -> bool: def check(self, username: str, password: str) -> bool:
user = self.get_by_name(username) user = self.get_by_name(username)
if not user:
print("Wrong user")
return False
user_pw = user.password_hash user_pw = user.password_hash
return argon2.verify(password, user_pw) return argon2.verify(password, user_pw)

View File

@@ -43,12 +43,10 @@ class App:
return perm, user_id return perm, user_id
else: else:
self.view.display_co_failed() self.view.display_co_failed()
return None quit()
def start(self): def start(self):
team, user_id = self.connect() team, user_id = self.connect()
if not user_id:
exit()
if team == 1: if team == 1:
CommercialMenu(self.customer_tools, CommercialMenu(self.customer_tools,
self.contract_tools, self.contract_tools,