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

Changing password should zero the count of failed logins. #99

Open
basefont opened this issue Apr 22, 2021 · 3 comments
Open

Changing password should zero the count of failed logins. #99

basefont opened this issue Apr 22, 2021 · 3 comments

Comments

@basefont
Copy link

Failed logins are counted to warn a member when someone is trying to guess the member's password. Therefore, the count of failed logins should apply to the current password. It should be zeroed when the password is changed. I have patched it in my tree. This does not zero the count when the superadmin's password is changed by send_sa_password_reset().

basefont@25ee967

@cypherbits
Copy link
Contributor

I would do it on successful login, not password changing.

@basefont
Copy link
Author

This patch doesn't affect the check on login. Why do you want to retain the count of failures after the password has been changed?

@DanWin
Copy link
Owner

DanWin commented Apr 23, 2021

Changing a password doesn't have much to do with the number of failed logins. Regularly changing your passwords is a good idea, but it won't change the fact that there are failed logins, regardless of what your previous password was. I also think that it's best to only reset the counter on login, not when changing the password.

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

3 participants