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

Limit OTP Attempts #11

Merged
merged 2 commits into from
Mar 21, 2025
Merged

Conversation

anish5256
Copy link
Collaborator

  • Added a new field attempts in the CallbackToken model to track OTP verification attempts.
  • Implemented increment_attempts() method to count OTP verification attempts and deactivate the token after 3 failed attempts.
  • Updated the validate() method in AbstractBaseCallbackTokenSerializer to increment attempts

This enhancement helps prevent brute-force OTP guessing and improves user experience with clearer error messages. 🚀

Max attempt changes

Max attempt changes

Max attempt changes
@anish5256 anish5256 merged commit c692cca into nishantonline1:master Mar 21, 2025
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.

1 participant