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

More descriptive AttemptTooSoonError #250

Open
jeremyml opened this issue Jun 11, 2018 · 0 comments
Open

More descriptive AttemptTooSoonError #250

jeremyml opened this issue Jun 11, 2018 · 0 comments

Comments

@jeremyml
Copy link

jeremyml commented Jun 11, 2018

I think a better AttemptTooSoonError would be

Account is currently locked. Try again in 135 seconds. You have 8 attempts remaining before account lockout.

It doesn't compromise security when you use it in conjunction with a prudent value for the maxAttempts variable.

      var AttemptTooSoonMessage = 'Account is currently locked.  Try again in '
        + Math.round(calculatedInterval / 1000) + ' seconds.  You have ' 
        + (options.maxAttempts - user.get(options.attemptsField))
        + ' attempts remaining before account lockout.';
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

No branches or pull requests

1 participant