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

[1.x] Fix two factor login check #235

Merged
merged 1 commit into from
Mar 8, 2021
Merged

[1.x] Fix two factor login check #235

merged 1 commit into from
Mar 8, 2021

Conversation

driesvints
Copy link
Member

Alternative to #234

This fixes something I broke in #233 (unreleased). Apparently the user id gets pulled from the session when the form is submitted which makes sense. This means we cannot re-use the challengedUser method. I've instead opted to re-use some of the code from the challengedUser in the hasChallengedUser method.

I tested this in an actual Jetstream app and it fixes the problem.

Thanks to @amiranagram for catching this.

@taylorotwell taylorotwell merged commit 0762191 into 1.x Mar 8, 2021
@taylorotwell taylorotwell deleted the fix-two-factor-login branch March 8, 2021 13:44
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.

None yet

2 participants