Skip to content

Use NewDeviceConcern consistently for session value#10678

Merged
aduth merged 1 commit intomainfrom
aduth-new-device-concern
May 22, 2024
Merged

Use NewDeviceConcern consistently for session value#10678
aduth merged 1 commit intomainfrom
aduth-new-device-concern

Conversation

@aduth
Copy link
Contributor

@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
@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