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
Fix double failed attempts and add error code for invalid otp #136
base: main
Are you sure you want to change the base?
Fix double failed attempts and add error code for invalid otp #136
Conversation
686a9e3
to
6ac2bb3
Compare
6dff6ec
to
afc7aad
Compare
2291a86
to
c70edc4
Compare
For me it fixed the issue to, but it breaks displaying the last_attempt warning. Fixed it by adding the following to if resource.failed_attempts == 2
return fail!(:last_attempt)
else
return fail!(:not_found_in_database)
end This assumes you got max 3 attempts. Not sure how to get the max attempts from the devise initializer. |
@ChielHackman @ChielHackman You can use |
Is this a different implementation for the same issue: PR #130 ? |
Yes |
The |
any update on this? |
Fixed: #127 and #51
Add the following message into
locales/devise.en.yml
:If you are enabling use backup code, the parameter
otp_backup
should be attached in your parameters request instead ofotp_attempt
.