Skip to content

Aut 4248/check your phone sms sms#2794

Merged
alhcomer merged 11 commits into
mainfrom
AUT-4248/check-your-phone-sms-sms
May 28, 2025
Merged

Aut 4248/check your phone sms sms#2794
alhcomer merged 11 commits into
mainfrom
AUT-4248/check-your-phone-sms-sms

Conversation

@alhcomer

@alhcomer alhcomer commented May 19, 2025

Copy link
Copy Markdown
Contributor

What

  • Assigns a defaultMfaMethodId on a user's session from enter-password onwards
  • When a user selects a radio option on the how do you want to get security codes? page, defaultMfaMethodId on the session is updated with the user's choice
  • NEED TO REQUEST OTP AFTER MAKING NEW CHOICE
  • This is then passed to the enter-mfa controller. The MFA ID here is used to retrieve the MFA's associated number on the session to show on the enter-mfa screen.
  • When the SMS MFA code is send to the BE, we are now also sending the defaultMfaMethodId. This is so that we know which MFA method to validate the code against

How to review

Checklist

  • Performance analyst has been notified of the change.
  • A UCD review has been performed.
  • Documentation has been updated to reflect these changes.

Related PRs

@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch 20 times, most recently from 78982ff to 06a700c Compare May 23, 2025 12:19
@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch 2 times, most recently from 14fae25 to f366137 Compare May 27, 2025 12:12
@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch 4 times, most recently from 022db74 to 8930c45 Compare May 27, 2025 14:23
@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch 2 times, most recently from 7a30c20 to d9e5b3d Compare May 28, 2025 08:15
@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch from d9e5b3d to 08245d3 Compare May 28, 2025 08:54
alhcomer added 10 commits May 28, 2025 12:20
- If user has chosen SMS method, redirects them to ENTER_MFA
- Saves the chosen SMS method ID to the session
- This will be used to show the correct number on the enter MFA screen
- Uses req.session.user.mfaMethods data to assign ID to defaultMfaMethodId
- This ensures it is populated whenever the variable is referenced later on
- If coming from the how do you want security codes screen, defaultMfaMethodId

wip to squash into enter mfa
- This is so that the MFA code is sent to the correct number
- Retrieve and set activeMfaMethodId to that of default mfa method

wip to squash
- Delete redundant test
- - The assertions in this test are covered in "should render reset password check email view"
- Refactor overlapping tests into single parameterized test
- Add missing assertion
@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch from 41ec30d to d80776e Compare May 28, 2025 11:35
@alhcomer alhcomer force-pushed the AUT-4248/check-your-phone-sms-sms branch from d80776e to ae08377 Compare May 28, 2025 11:41
@alhcomer alhcomer marked this pull request as ready for review May 28, 2025 11:41
@alhcomer alhcomer requested review from a team as code owners May 28, 2025 11:41
@sonarqubecloud

Copy link
Copy Markdown

@alhcomer alhcomer merged commit 2b4662e into main May 28, 2025
11 checks passed
@alhcomer alhcomer deleted the AUT-4248/check-your-phone-sms-sms branch May 28, 2025 12:35
@alhcomer alhcomer restored the AUT-4248/check-your-phone-sms-sms branch May 28, 2025 14:40
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.

2 participants