Skip to content
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

Use NewDeviceConcern consistently for session value #10678

Merged
merged 1 commit into from
May 22, 2024

Conversation

aduth
Copy link
Member

@aduth aduth commented May 22, 2024

🛠 Summary of changes

Updates references to user_session[:new_device] with NewDeviceConcern#new_device?.

This is a refactoring following #10628 to consistently use the concern abstractions in place of direct references to the session.

One difference is that new_device? will default to true on an absent session value. In the real-world, this should never realistically happen when verifying 2FA after sign-in.

📜 Testing Plan

Repeat Testing Plan from #9784

changelog: Upcoming Features, Aggregated Sign-In Message, Fix aggregated new device sign-in for expired session
@aduth aduth requested a review from a team May 22, 2024 13:39
@aduth aduth merged commit 4cc947a into main May 22, 2024
2 checks passed
@aduth aduth deleted the aduth-new-device-concern branch May 22, 2024 14:19
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