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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.