Changing password displays error message, but successfully changes the password
Closed this issue · 5 comments
briangrossman commented
Steps to Reproduce
- Log in to xPRO
- In the upper right, click on your avatar, then click settings
- In the Change Password section, enter:
- your old password
- a new password
- a new password again
- Click Submit
Expected Behavior
- Learner's password is updated and the learner sees a message confirming the change like:
Your password has been updated successfully.
Actual Behavior
- Learner's password is updated, but...
- Learner receives a message:
Unable to reset your password, please try again later.
(see image below) - Relevant Code (link)
Wassaf-Shahzad commented
During research for this issue I discovered the following bugs.
- After updating the password, the user is also logged out as the session does not remain valid
- Password update & session issues exists in MITxOnline as well and it can be verified(MITXOnline RC link)
The session is not updated as the set_password was removed in a previous PR #2193.
I am currently working to solve both of these issues.
Wassaf-Shahzad commented
@briangrossman Can you close this issue ? I have created the relevant issue in ol-django mitodl/ol-django#45.
briangrossman commented
@Wassaf-Shahzad - we can close this once mitodl/ol-django#45 closes. Thanks!
Wassaf-Shahzad commented
@Wassaf-Shahzad - we can close this once mitodl/ol-django#45 closes. Thanks!
Sure. l pick mitodl/ol-django#45 as soon as it is added to Arbisofts board
briangrossman commented
@Wassaf-Shahzad - we can close this once mitodl/ol-django#45 closes. Thanks!
Closing. Thanks, @Wassaf-Shahzad!