Reorder phone confirmation and review page#1530
Conversation
|
I've re-ordered the steps, but there's some follow on things I still need to do:
|
|
Does this preserve the "verify by phone or by mail" choice screen? |
|
Yes, it should. I can to be sure though. |
|
Just ran through the mail flow. It is still there and appears to work 👍 |
|
Some updates:
|
|
I still need to modify the confirmations controller so it redirects to the otp verification if the phone number is unconfirmed. Also, there's some dead code on the account page that tells the user to verify their account by phone which will need to be removed. |
|
I changed up the review controller so it redirects to phone confirmation if the user needs to confirm their phone. The confirmations controller checks that an active profile has been created before allowing any actions. The profile is created in the review controller so no further work should need to be done to the confirmations controller. There is still a wrinkle where a user can bail out of the process during the confirmations step and end up with a profile that is not activated. Because of that I'm leaving some of the code to allow a user to return to confirmation from the account page. I'd prefer to break that work off into another PR. |
|
The code looks good overall, but I found the following bug:
Could we make sure to add a test for this? The test should perform the flow in 3 different scenarios: via SAML, via OIDC, and when visiting the site directly. |
|
Hmm, I don't think this bug is specific to my branch. I'm seeing something similar on master. There the difference is instead of redirecting to the OTP entry screen, it is redirecting me to the password screen. It looks like the problem is that once you've entered your phone of record, we make the assumption that you wouldn't want to go back and change it. So, we redirect to the next step if you have entered your phone. On master, that is the password entry, here it is phone confirmation. Corollary: The same is true for finance and profile info. It is impossible to back and change anything. We may want to think that through. This behavior appears to occur regardless of whether you use OIDC or SAML. I'm happy to fix, but I think it is out of scope here. This probably needs it's own issue and PR. |
|
@monfresh: I have opened an issue for the above bug here: https://github.com/18F/identity-private/issues/2268 |
|
Fair enough. We can address the bug in a separate PR. |
**Why**: It is confusing for users to verify their phone number after entering confirming their profile by entering their password. This commit changes the order so the user verifies their phone immediately after entering it Add spec for session#complete_session **Why**: While working on the verify by phone flow for the IdV process, I want to add a test to make sure that I don't create a situation where a profile can be activated without a confirmed phone number of record. Link to cancel path for idv phone OTP cancel **Why**: When a user cancels during identity verification, we don't want to sign them out. They were being signed out because we were sharing code with the authentication 2FA flow. Check in review controller if phone confirmed **Why**: If the user has not confirmed their phone during the IdV flow, we want to redirect to the phone confirmation instead of allowing them to continue with the creation of their profile.
ae400e6 to
f2845b7
Compare
Why: It is confusing for users to verify their phone number after
entering confirming their profile by entering their password. This
commit changes the order so the user verifies their phone immediately
after entering it