-
Notifications
You must be signed in to change notification settings - Fork 166
LG-9871 Password Re-entry Content Changes #8508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a8af129
6d7b0f8
f42d0e0
f324efd
5aef21e
e61fe9e
5338c85
bcf33a9
9995b84
778633f
07b6080
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,8 @@ class ReviewController < ApplicationController | |
| before_action :confirm_address_step_complete | ||
| before_action :confirm_current_password, only: [:create] | ||
|
|
||
| helper_method :step_indicator_step | ||
|
|
||
| rescue_from UspsInPersonProofing::Exception::RequestEnrollException, | ||
| with: :handle_request_enroll_exception | ||
|
|
||
|
|
@@ -30,7 +32,6 @@ def confirm_current_password | |
| end | ||
|
|
||
| def new | ||
| @applicant = idv_session.applicant | ||
| Funnel::DocAuth::RegisterStep.new(current_user.id, current_sp&.issuer). | ||
| call(:encrypt, :view, true) | ||
| analytics.idv_review_info_visited(address_verification_method: address_verification_method) | ||
|
|
@@ -41,6 +42,8 @@ def new | |
| flash_now[:error] = t('idv.errors.mail_limit_reached') | ||
| elsif idv_session.phone_confirmed? | ||
| flash_now[:success] = t('idv.messages.review.phone_verified') | ||
| elsif address_verification_method == 'gpo' | ||
| flash_now[:info] = t('idv.messages.review.gpo_pending') | ||
| end | ||
| end | ||
|
|
||
|
|
@@ -74,10 +77,15 @@ def create | |
| session[:last_gpo_confirmation_code] = idv_session.gpo_otp | ||
| end | ||
|
|
||
| def step_indicator_step | ||
| return :secure_account unless address_verification_method == 'gpo' | ||
| :get_a_letter | ||
| end | ||
|
|
||
| private | ||
|
|
||
| def address_verification_method | ||
| user_session.dig('idv', 'address_verification_mechanism') | ||
| user_session.with_indifferent_access.dig('idv', 'address_verification_mechanism') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this change relate to the ticket?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Controller tests won't work because an idv_session is mapped as a symbol rather than a string. I'm not sure why it was specified as a string in the first place, but new tests of the |
||
| end | ||
|
|
||
| def init_profile | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can also remove the assign in the spec:
identity-idp/spec/views/idv/review/new.html.erb_spec.rb
Lines 14 to 24 in e7e88a2