Updated account
This commit is contained in:
parent
dd5b4149c2
commit
50a0370014
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue