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

Require a recovery code when max failure attempts is exceeded #1

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

makouchyk
Copy link
Collaborator

@makouchyk makouchyk commented Mar 11, 2025

image

sign_in(resource_name, resource)

otp_set_trusted_device_for(resource) if params[:enable_persistence] == "true"
otp_refresh_credentials_for(resource)
respond_with resource, location: after_sign_in_path_for(resource)
else
bump_failed_attempts(resource)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe bump only on non-empty otp

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