#3353: handle multiple login.gov accounts with same email address [DK] #3420
+106
−35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
Resolves #3353
Changes
Context for reviewers
Still in draft mode until fixtures is modified
Setup
The setup requires either:
I found (2) above was much easier to do to test this. The process I used to test was as follows:
Log in to registrar as your existing user. Then log out.
Access the database. Query the registrar_user table for the email address you used to log in. Note the username. Then update the username for this user to some bogus username.
Log in again to the registrar with the same email address you used before.
Access the database again. Query the registrar_user for the email address you used to log in. Note the username. It should now be the original username (from login.gov)
There are lots of ways to do the above. For reference, I logged in as '[email protected]'. Then logged out.
I accessed database using sqltools extension in visual studio code. I viewed all records in the table. Then updated my user:
update registrar_user set username='fake_username' where email='[email protected]';
I then logged in again. And I viewed all records in the registrar_user table, verifying the username.
Code Review Verification Steps
As the original developer, I have
Satisfied acceptance criteria and met development standards
Ensured code standards are met (Original Developer)
Validated user-facing changes (if applicable)
As a code reviewer, I have
Reviewed, tested, and left feedback about the changes
Validated user-facing changes as a developer
Note: Multiple code reviewers can share the checklists above, a second reviewer should not make a duplicate checklist. All checks should be checked before approving, even those labeled N/A.
As a designer reviewer, I have
Verified that the changes match the design intention
Validated user-facing changes as a designer
References
Screenshots