Skip to content

LG-9208: Confirm password#8220

Merged
jc-gsa merged 131 commits intomainfrom
LG-9208-confirm-password
May 4, 2023
Merged

LG-9208: Confirm password#8220
jc-gsa merged 131 commits intomainfrom
LG-9208-confirm-password

Conversation

@jc-gsa
Copy link
Contributor

@jc-gsa jc-gsa commented Apr 14, 2023

🎫 Ticket

LG-9208

🛠 Summary of changes

Adds a password confirmation component to the user registration flow. Adds both front-end and back-end validations.

It is important to ensure that no other flows are inadvertently disrupted.

Older code was refactored as it was encountered, particularly tests.

@jc-gsa jc-gsa force-pushed the LG-9208-confirm-password branch from e929d3d to ab97289 Compare April 17, 2023 05:48
jc-gsa added 2 commits April 17, 2023 16:02
changelog: User-Facing Improvements, Registration, Add password confirmation
@jc-gsa jc-gsa requested a review from a team April 17, 2023 21:24
@aduth
Copy link
Contributor

aduth commented Apr 18, 2023

There's some merge conflicts here that need to be resolved. I suspect they're related to changes in #8085.

jc-gsa and others added 9 commits April 18, 2023 17:09
changelog: Internal, Caching, Use ActiveSupport cache version 7.0
… is created (#8113)

* add usps doc check to proofing component earlier

changelog: Internal, refactor, in-person VerifyInfoController outside Flow State Machine

* include Steps::ThreadMetricStepHelper (see #7924)

* replace IdvSession with IdvStepConcern (see #7840)

and remove redundant confirm_two_factor_authenticate (see #8082)

* give in-person verify info controller its own view

and fix links to update pages

* move process_async_state into the concern
* saml_2022 -> saml_2023; remove saml_2021 stuff

* changelog: Internal, SAML, remove saml2021 references (identity-devops#5739)

* update example cert files in config/artifacts.example/local/

- remove the old saml2021 .crt and .key.enc files as they're no longer used/valid
- change saml2023 .crt and .key.enc to actual files (vs. symlinks),
  newly created with openssl req -newkey (etc.)

changelog: Internal, SAML, remove saml2021 references (identity-devops#5739)

* Update specs to 2023

* Replace auth2022

Command:

git grep -l auth2022 -- spec | xargs perl -p -i -e 's/auth2022/auth2023/g' --

* Replace logout2022

git grep -l logout2022 -- spec | xargs perl -p -i -e 's/logout2022/logout2023/g' --

* Update authpost2022

git grep -l authpost2022 -- spec | xargs perl -p -i -e 's/authpost2022/authpost2023/g'

* Update one last spec

---------

Co-authored-by: Zach Margolis <zachary.margolis@gsa.gov>
* Fix link to help center

Link "Learn more about what phone number to use" to https://login.gov/help/verify-your-identity/phone-number/

[skip changelog]

* Fix size of "Verify by mail " button
…tion (#8123)

Combine the versions of confirm_document_capture_complete in IdvStepConcern (used by SsnController) and in AddressController. This will make it easier to continue updating that method as we continue adding functionality to DocumentCaptureController.

Added method pii_from_doc to IdvStepConcern
pii is no longer an instance variable and no longer memoized in SsnController and AddressController
The long term plan is to move all the step-related before actions and methods to IdvStepConcern
Move flow_session and flow_path to IdvStepConcern

changelog: Internal, Flow State Machine replacement, combine similar before actions

---------

Co-authored-by: Douglas Price <douglas.price@gsa.gov>
changelog: Internal, Attempts API, Batch Job improvements
* re-add saml2021* files to AppArtifacts.setup, for now

* changelog: Internal, SAML, re-add saml2021 references (identity-devops#5739)

* re-add saml2021 files to config/artifacts.example/local/

changelog: Internal, SAML, remove saml2021 references (identity-devops#5739)
@jc-gsa jc-gsa force-pushed the LG-9208-confirm-password branch from 8db0ceb to 49e9863 Compare April 21, 2023 00:01
@jc-gsa jc-gsa force-pushed the LG-9208-confirm-password branch from 49e9863 to 017b3c2 Compare April 21, 2023 00:02
@mdiarra3
Copy link
Contributor

why are there 118 commits in ur branch this is weird.

@jc-gsa jc-gsa force-pushed the LG-9208-confirm-password branch from 18d7be4 to b3774fc Compare April 24, 2023 20:57
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few, mostly minor remarks, but functionally this works great 👍

jc-gsa and others added 7 commits April 25, 2023 11:27
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
…p into LG-9208-confirm-password

# Conflicts:
#	app/controllers/sign_up/passwords_controller.rb
#	app/forms/password_form.rb
#	spec/forms/password_form_spec.rb
@jc-gsa jc-gsa force-pushed the LG-9208-confirm-password branch from b553b88 to a798714 Compare May 2, 2023 20:17
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Will you create the follow-on pull request to remove the code for managing the mid-deploy state?

Separately, I'm going to create a ticket to explore password form improvements like using [autocomplete="new-password"] and a hidden input for the email address, with the hopes that it could provide the user an option to auto-fill a generated password and prompt to save the password. This hasn't existed previously either, but I think having a confirmation field makes this problem more acute, since even if someone uses a password manager they'll have to manually insert that password into each of the two fields (or at least that was my experience in testing this).

Edit: For posterity, the tickets are LG-9709 and LG-9710.

@jc-gsa
Copy link
Contributor Author

jc-gsa commented May 4, 2023

@aduth LG-9714 has been created to remove the 'feature flag'.

@jc-gsa jc-gsa merged commit f85363f into main May 4, 2023
@jc-gsa jc-gsa deleted the LG-9208-confirm-password branch May 4, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.