Skip to content

fix(auth): prevent duplicate form submissions in 2FA code input #156

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

tygoegmond
Copy link
Contributor

Description

This PR fixes an issue where the 2FA code input form could be submitted multiple times when using password managers like 1Password. The duplicate submissions would result in 500 errors due to invalid session state on subsequent requests.

Changes

  • Added callbackSubmitted state tracking to prevent multiple callback executions
  • Implemented submission state check before triggering callback events

Adds submission state tracking to prevent multiple submissions when using password managers like 1Password. This prevents potential 500 errors caused by invalid session state on subsequent requests.
@tnylea tnylea merged commit 06872a0 into thedevdojo:main Apr 28, 2025
0 of 6 checks passed
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