mirror of
https://github.com/django/django.git
synced 2025-03-10 01:12:53 +00:00
[4.2.x] Fixed #34970 -- Clarified Password Validation docs regarding the password_changed callback.
Backport of 61c305f298da1b4079a80721c861d0663dc8717e from main
This commit is contained in:
parent
f1e004012f
commit
47f9b8dca1
@ -519,8 +519,9 @@ can write your own as well.
|
|||||||
|
|
||||||
Each password validator must provide a help text to explain the requirements to
|
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
|
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.
|
meet the requirements, and optionally define a callback to be notified when
|
||||||
Validators can also have optional settings to fine tune their behavior.
|
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.
|
Validation is controlled by the :setting:`AUTH_PASSWORD_VALIDATORS` setting.
|
||||||
The default for the setting is an empty list, which means no validators are
|
The default for the setting is an empty list, which means no validators are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user