mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #16860 -- Moved password_changed() logic to AbstractBaseUser.
Thanks Carl Meyer for review.
This commit is contained in:
parent
d7848c11e0
commit
f5e9d67907
5 changed files with 98 additions and 10 deletions
|
@ -379,6 +379,11 @@ or if you have API calls that allow passwords to be set, for example.
|
|||
by validators such as one that prevents password reuse. This should be
|
||||
called once the password has been successfully changed.
|
||||
|
||||
For subclasses of :class:`~django.contrib.auth.models.AbstractBaseUser`,
|
||||
the password field will be marked as "dirty" when calling
|
||||
:meth:`~django.contrib.auth.models.AbstractBaseUser.set_password` which
|
||||
triggers a call to ``password_changed()`` after the user is saved.
|
||||
|
||||
.. function:: password_validators_help_texts(password_validators=None)
|
||||
|
||||
Returns a list of the help texts of all validators. These explain the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue