le-chat-php icon indicating copy to clipboard operation
le-chat-php copied to clipboard

Changing password should zero the count of failed logins.

Open basefont opened this issue 4 years ago • 3 comments

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().

https://github.com/basefont/le-chat-php/commit/25ee967a97ceefa6cb7786bfb6779149d4e700eb

basefont avatar Apr 22 '21 03:04 basefont

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

cypherbits avatar Apr 22 '21 09:04 cypherbits

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?

basefont avatar Apr 22 '21 17:04 basefont

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.

DanWin avatar Apr 23 '21 15:04 DanWin