Skip to content

LG-16185 Turn on ft unlock upsell sms#12238

Merged
kevinsmaster5 merged 28 commits intomainfrom
LG-16185-kmas-turn-on-ft-unlock-upsell-sms-db-migrate
Jun 11, 2025
Merged

LG-16185 Turn on ft unlock upsell sms#12238
kevinsmaster5 merged 28 commits intomainfrom
LG-16185-kmas-turn-on-ft-unlock-upsell-sms-db-migrate

Conversation

@kevinsmaster5
Copy link
Copy Markdown
Contributor

@kevinsmaster5 kevinsmaster5 commented Jun 3, 2025

🎫 Ticket

LG-15837

🛠 Summary of changes

Adds a route to the OtpVerificationController to send users to the suggest Platform Authenticator screen if they are capable of using one, are using SMS, and a mobile device and have not previously dismissed the suggested MFA screen.

📜 Testing Plan

prerequisite: using browser dev tools simulate a mobile device

  • Sign in to http://localhost:3000 using an account with Phone mfa
  • After sending the one time code you should be brought to the suggest platform authenticator screen
    Screenshot 2025-06-05 at 12 03 43 PM (2)

Each of these factors are required to show the suggested screen

  • Mobile device
  • Has not previously dismissed the suggestion screen
  • Signing in using SMS
  • Is capable of using a Platform Authenticator
  • Does not already have a Platform Authenticator MFA added

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can ft be expanded? it wasn't immediately clear to me what it meant

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're absolutely correct - I was about to rename that column but realized after talking to the team we can use the "webauthn_platform_recommended_dismissed_at" column that's already there.

@kevinsmaster5 kevinsmaster5 changed the title LG-16185 Turn on ft unlock upsell sms: DB changes LG-16185 Turn on ft unlock upsell sms Jun 3, 2025
@kevinsmaster5 kevinsmaster5 marked this pull request as ready for review June 5, 2025 16:06
@kevinsmaster5 kevinsmaster5 requested review from a team and mitchellhenke June 5, 2025 16:07
@kevinsmaster5 kevinsmaster5 force-pushed the LG-16185-kmas-turn-on-ft-unlock-upsell-sms-db-migrate branch from 2b1b240 to e784c72 Compare June 5, 2025 19:05
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we do a check of if SMS is set up rather than use the params?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That works! I have that added in.

@kevinsmaster5 kevinsmaster5 force-pushed the LG-16185-kmas-turn-on-ft-unlock-upsell-sms-db-migrate branch from 3710580 to 40feed4 Compare June 10, 2025 13:19
Comment on lines 105 to 109
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
user_session[:platform_authenticator_available] &&
!current_user.webauthn_platform_recommended_dismissed_at? &&
current_user.webauthn_configurations.where(platform_authenticator: [false, nil]) &&
phone_configuration.delivery_preference == 'sms' &&
mobile?
user_session[:platform_authenticator_available] &&
!current_user.webauthn_platform_recommended_dismissed_at? &&
phone_configuration.delivery_preference == 'sms' &&
mobile? &&
current_user.webauthn_configurations.where(platform_authenticator: [false, nil])

Small suggestion to re-order the checks to make the most expensive ones last

@kevinsmaster5 kevinsmaster5 requested review from a team, jmdembe and mitchellhenke June 11, 2025 13:44
@kevinsmaster5 kevinsmaster5 force-pushed the LG-16185-kmas-turn-on-ft-unlock-upsell-sms-db-migrate branch from 3aebe63 to d821f79 Compare June 11, 2025 16:38
@kevinsmaster5 kevinsmaster5 merged commit 5cba882 into main Jun 11, 2025
1 check passed
@kevinsmaster5 kevinsmaster5 deleted the LG-16185-kmas-turn-on-ft-unlock-upsell-sms-db-migrate branch June 11, 2025 20:33
@JzmCrow JzmCrow self-assigned this Jul 21, 2025
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.

4 participants