This commit is contained in:
2023-05-16 11:00:09 +00:00
parent ce5124605a
commit 727f61a35e
7 changed files with 132 additions and 52 deletions

View File

@ -60,8 +60,8 @@ def reset_password():
# this can be served to activate user too
user.activated = True
# remove the reset password code
ResetPasswordCode.delete(reset_password_code.id)
# remove all reset password codes
ResetPasswordCode.filter_by(user_id=user.id).delete()
# change the alternative_id to log user out on other browsers
user.alternative_id = str(uuid.uuid4())