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

Destroy a recovery code when used – fixes #284 #366

Merged

Conversation

corazzi
Copy link
Contributor

@corazzi corazzi commented Jun 3, 2024

Fixes #284

When a recovery code is used, it should be discarded so that it cannot be used again.

This PR will destroy a recovery code when used by filtering it out of the existing set of codes and updating the record.

@jeffgreco13 jeffgreco13 merged commit 5323369 into jeffgreco13:2.x Jun 9, 2024
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.

same 2FA recovery code can be reused multiple times
2 participants