auth.password_validation.CommonPasswordValidator

class CommonPasswordValidator(password_list_path=DEFAULT_PASSWORD_LIST_PATH) [source]

Validates whether the password is not a common password. By default, this checks against a list of 1000 common password created by Mark Burnett.

The password_list_path can be set to the path of a custom file of common passwords. This file should contain one password per line and may be plain text or gzipped.

doc_Django
2016-10-09 18:34:27
Comments
Leave a Comment

Please login to continue.