From 0e6f4ce192bc746fe4cab94eaf95e0ff04c2e5ad Mon Sep 17 00:00:00 2001 From: Kostanjevec Date: Sun, 22 May 2022 16:55:09 +0200 Subject: [PATCH] ? --- auth.py | 1 - 1 file changed, 1 deletion(-) diff --git a/auth.py b/auth.py index 7d32377..e2904af 100644 --- a/auth.py +++ b/auth.py @@ -54,7 +54,6 @@ def login(): error = None user = dbsession.query(User).filter(User.username == username).first() - if user is None: error = 'Incorrect username.' elif not user.password == md5(password.encode("utf-8")).hexdigest(): #compare input pw has and bd pw hash