Skip to content
4 changes: 4 additions & 0 deletions app/controllers/concerns/idv_step_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def flow_path
private

def confirm_ssn_step_complete
if IdentityConfig.store.in_person_ssn_info_controller_enabled
# mark ssn step as complete for FSM
Copy link
Contributor

Choose a reason for hiding this comment

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

should the comment read for non-fsm rather than fsm?

Copy link
Contributor Author

@gina-yamada gina-yamada Aug 1, 2023

Choose a reason for hiding this comment

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

@svalexander Although we are in the non-FSM step- I am actually marking the FSM step as complete. Here is my thinking (let me know your thoughts please)...

When the users manually changes the url to the FSM ssn step (because they did not visit it, it is not getting marked as complete) so they are able to visit it (not expected behavior) rather than being redirected back to Verify (expected behavior) because it is complete. If we mark it as complete (we have the data- they just got it on the new flow)- they will be redirect to Verify Info- and will have to get to SSN by using the Update button.

This will need to get removed in your delete PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

ahhh i see what you're saying, ok the comment makes sense then

flow_session['Idv::Steps::InPerson::SsnStep'] = true if flow_session.dig(:pii_from_user, :ssn)
end
return if pii.present? && pii[:ssn].present?
redirect_to prev_url
end
Expand Down