mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #29952 -- Lowercased all passwords in contrib.auth's auth/common-passwords.txt.gz.
This commit is contained in:
parent
9b15ff08ba
commit
26bb2611a5
4 changed files with 13 additions and 4 deletions
|
@ -202,6 +202,11 @@ class CommonPasswordValidatorTest(TestCase):
|
|||
self.assertEqual(cm.exception.messages, [expected_error])
|
||||
self.assertEqual(cm.exception.error_list[0].code, 'password_too_common')
|
||||
|
||||
def test_validate_django_supplied_file(self):
|
||||
validator = CommonPasswordValidator()
|
||||
for password in validator.passwords:
|
||||
self.assertEqual(password, password.lower())
|
||||
|
||||
def test_help_text(self):
|
||||
self.assertEqual(
|
||||
CommonPasswordValidator().get_help_text(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue