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