Fixed #34970 -- Clarified Password Validation docs regarding the password_changed callback.

This commit is contained in:
Markus Amalthea Magnuson 2023-11-14 10:39:02 +01:00 committed by Natalia Bidart
parent 36ed45d27c
commit 61c305f298
1 changed files with 3 additions and 2 deletions

View File

@ -526,8 +526,9 @@ can write your own as well.
Each password validator must provide a help text to explain the requirements to
the user, validate a given password and return an error message if it does not
meet the requirements, and optionally receive passwords that have been set.
Validators can also have optional settings to fine tune their behavior.
meet the requirements, and optionally define a callback to be notified when
the password for a user has been changed. Validators can also have optional
settings to fine tune their behavior.
Validation is controlled by the :setting:`AUTH_PASSWORD_VALIDATORS` setting.
The default for the setting is an empty list, which means no validators are