fizista / django-password-validators

Additional libraries for validating passwords in Django.
BSD 3-Clause "New" or "Revised" License
51 stars 31 forks source link

Incorrect password history message #36

Closed Millz0r closed 9 months ago

Millz0r commented 1 year ago

When a user tries to input one of his historical passwords he gets a message:

"You can not use a password that is already used in this application."

This message is confusing, as the password is not used in this application right now, but was used in the past. I suggest changing the message to:

"You can not use a password that was already used in this application in the past."

https://github.com/fizista/django-password-validators/blob/a76e19fa2da549e84b511b046a68fa218864cfda/django_password_validators/password_history/password_validation.py#L81

wahabrind commented 1 year ago

Or an ability to provide custom messages from settings.