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