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 prepare auth session #181

Merged
merged 3 commits into from
Dec 31, 2020

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Dec 29, 2020

This is a partial fix for #171. After a successful two factor auth, the PrepareAuthenticatedSession action is never reached and thus a new CSRF token is never generated nor is the rate limiter reset. This PR adds these calls manually to the TwoFactorAuthenticatedSessionController. Ideally the PrepareAuthenticatedSession action would handle this but it can never be reached because two factor is being done in a new request.

There's also a few minor DocBlock fixes I sneaked in.

@taylorotwell
Copy link
Member

Just pushed improvements to Fortify's rate limiting setup that handles this.

@taylorotwell
Copy link
Member

Sorry wrong PR.

@taylorotwell taylorotwell merged commit ee4d41b into 1.x Dec 31, 2020
@taylorotwell taylorotwell deleted the fix-two-factor-prepare-auth-session branch December 31, 2020 14:57
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