made auth test user/pw simplier
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user