Skip to content

Commit

Permalink
clear reset password session namespace when completed
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlundberg committed Jan 22, 2025
1 parent 6e65977 commit f121201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eduid/webapp/reset_password/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def reset_user_password(

current_app.logger.info(f"Password reset done, removing state for {user}")
current_app.password_reset_state_db.remove_state(state)
session.reset_password.clear()
return success_response(message=ResetPwMsg.pw_reset_success)


Expand Down

0 comments on commit f121201

Please sign in to comment.