From 50a0370014375d137e3f2fb824c17c8b6718dbc2 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Mon, 20 Nov 2023 18:31:09 +0000 Subject: [PATCH] Updated account --- account/account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account/account.py b/account/account.py index 723c239..e66c27d 100644 --- a/account/account.py +++ b/account/account.py @@ -173,9 +173,10 @@ def register(): # Attempt to change the password if change_email_password(username, password): # Password changed + response = make_response(redirect('/account')) response.set_cookie('passwordhash', '', expires=0) response.set_cookie('email', '', expires=0) - return redirect('/account') + return response else: # Backend error, potentially maddy return render_template('err.html'), 500