From c3b7d3c97f8bad5ecf986d46aaa19e373e08960a Mon Sep 17 00:00:00 2001 From: pstruebi Date: Sat, 3 Dec 2022 16:20:50 +0100 Subject: [PATCH] fix password condition and message --- auth.py | 4 +--- templates/auth/register.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/auth.py b/auth.py index 63309b4..987a954 100644 --- a/auth.py +++ b/auth.py @@ -29,7 +29,7 @@ def register(): error = 'Password is required.' elif not email: error = 'Email is required.' - elif password.lower()== password or password.upper()==password or password.isdigit() or len(password)<=8: #check passwrd complexity + elif password.lower()== password or password.upper()==password or password.isdigit() or len(password)<8: #check passwrd complexity error = 'Bedingungen für passwort nicht erfüllt.' if error is None: @@ -145,8 +145,6 @@ def confirm_email(token): email = confirm_token(token) except: outcome = 'The confirmation link is invalid or has expired.' - #if g.user["confirmed"]: # TODO: Not working like this. User must be logged in for this to work but admin is doing the confirmation. Muss sql query nach email sein. - # outcome = 'Account already confirmed.' else: db = get_db() diff --git a/templates/auth/register.html b/templates/auth/register.html index 5ccd709..1052810 100644 --- a/templates/auth/register.html +++ b/templates/auth/register.html @@ -14,7 +14,7 @@
- +