RAS-1614: Fix Frontstage request_password_change logic#1063
RAS-1614: Fix Frontstage request_password_change logic#1063SteveScorfield merged 16 commits intomainfrom
Conversation
|
/deploy scorfs |
|
Deploying to dev cluster with following parameters:
|
matthew-robinson-ons
left a comment
There was a problem hiding this comment.
The implementation works to resolve this issue found. Some queries around the testing
matthew-robinson-ons
left a comment
There was a problem hiding this comment.
Happy this fixes the bug and testing is improved
LJBabbage
left a comment
There was a problem hiding this comment.
Realistically we shouldnt be client testing and it should be at function level, however the code is sub optimal as the view shouldn't be doing all this and should be rationalised properly. We don't have to change this now mind.
…m/ONSdigital/ras-frontstage into fix-request-password-change-logic Merge remote to local
|
/deploy scorfs |
|
Deploying to dev cluster with following parameters:
|
|
/deploy scorfs |
|
Deploying to dev cluster with following parameters:
|
|
/deploy scorfs |
|
Deploying to dev cluster with following parameters:
|
LJBabbage
left a comment
There was a problem hiding this comment.
A bit of redundancy in the tests, but it seems to work
What and why?
A bug was found where if a user tries to reset their password multiple times and let the token expire. As a result, the token was deleted (null value) in the DB and then a 500 was shown to the user as a result of a conditional. The fix introduced will prevent this from happening. I've added more tests to cover further scenarios around password resetting.
Note: I think I have covered all potential unit test scenarios but let me know if you see other areas.
How to test?
Run unit and acceptance tests
Jira
https://jira.ons.gov.uk/browse/RAS-1614