Fixed #16860 -- Added password validation to django.contrib.auth.

This commit is contained in:
Erik Romijn 2015-03-08 15:07:57 +01:00
parent f4416b1a8b
commit 1daae25bdc
12 changed files with 663 additions and 5 deletions

View file

@ -2767,6 +2767,19 @@ Default::
'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
'django.contrib.auth.hashers.CryptPasswordHasher']
.. setting:: AUTH_PASSWORD_VALIDATORS
AUTH_PASSWORD_VALIDATORS
------------------------
.. versionadded:: 1.9
Default: ``[]``
Sets the validators that are used to check the strength of user's passwords.
See :ref:`password-validation` for more details.
By default, no validation is performed and all passwords are accepted.
.. _settings-messages:
Messages