From 54368e535e2f463048256f9b052cd43126fbc997 Mon Sep 17 00:00:00 2001 From: yann Date: Wed, 20 Aug 2025 14:50:04 +0200 Subject: [PATCH] removed old connection test, make it more clear --- authentication.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/authentication.py b/authentication.py index e469328..d05c931 100644 --- a/authentication.py +++ b/authentication.py @@ -38,15 +38,6 @@ class PasswordTools: return {'message': "Wrong username"} def check(self, username: str, password: str) -> bool: - # if self.db.scalars( - # select(Collaborator).filter_by(name=username)).all(): - # sbq = select(Collaborator).where( - # Collaborator.name == username).subquery() - # stmt = select(Credentials).join( - # sbq, - # Credentials.collaborator_id == sbq.c.id) - # result = self.db.scalars(stmt).all() - # user_pw = result[0].password_hash user = self.get_by_name(username) if not user: print("Wrong user")