From 9e0b0892e8c9efce25cf3b011c18f40916e1aacc Mon Sep 17 00:00:00 2001 From: pstruebi Date: Fri, 17 Jun 2022 11:39:12 +0200 Subject: [PATCH] remove confirmation check --- auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.py b/auth.py index 5bf9b4e..63309b4 100644 --- a/auth.py +++ b/auth.py @@ -145,8 +145,8 @@ def confirm_email(token): email = confirm_token(token) except: outcome = 'The confirmation link is invalid or has expired.' - if g.user["confirmed"]: - outcome = 'Account already confirmed.' + #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()