Apply suggestions from code review

Co-authored-by: Ben Thorner <benthorner@users.noreply.github.com>
This commit is contained in:
Pea Tyczynska
2022-03-03 14:09:07 +00:00
committed by Leo Hemsted
parent 8112930e24
commit ae4fc977c1
2 changed files with 4 additions and 33 deletions

View File

@@ -64,7 +64,7 @@ def verify_email(token):
session['user_details'] = {"email": user.email_address, "id": user.id}
if user.auth_type == 'email_auth':
if user.email_auth:
try:
return activate_user(user.id)
finally: