Updated account

This commit is contained in:
Tracker-Friendly 2023-11-20 18:31:09 +00:00
parent dd5b4149c2
commit 50a0370014
1 changed files with 2 additions and 1 deletions

View File

@ -173,9 +173,10 @@ def register():
# Attempt to change the password # Attempt to change the password
if change_email_password(username, password): if change_email_password(username, password):
# Password changed # Password changed
response = make_response(redirect('/account'))
response.set_cookie('passwordhash', '', expires=0) response.set_cookie('passwordhash', '', expires=0)
response.set_cookie('email', '', expires=0) response.set_cookie('email', '', expires=0)
return redirect('/account') return response
else: else:
# Backend error, potentially maddy # Backend error, potentially maddy
return render_template('err.html'), 500 return render_template('err.html'), 500