django-phone-verify icon indicating copy to clipboard operation
django-phone-verify copied to clipboard

Discard session token after n failed attempts

Open ejain opened this issue 1 year ago • 1 comments

Should have some protection against brute-forcing security codes, especially since TOKEN_LENGTH can be set to a low value like 4...

ejain avatar May 07 '24 20:05 ejain

Thanks for the suggestion.

I would suggest a setting that controls the MIN_TOKEN_LENGTH. We may have another setting to discard the token after n failed attempts where n can be configured through another setting. If you'd like to work on this and raise a PR, I'll be happy to merge it.

CuriousLearner avatar Oct 13 '24 20:10 CuriousLearner