Skip to content

Commit

Permalink
v9.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Nov 24, 2023
1 parent 5a8487c commit 67e75f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@
TIME_ZONE = "UTC"

LOCALE_PATHS = [str(BASE_PATH) + "/ambient_toolbox/locale"]

PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]
4 changes: 2 additions & 2 deletions tests/validators/auth_password/test_special_chars.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def test_get_help_text_regular(self):
@override_settings(AUTH_PASSWORD_VALIDATORS=["ambient_toolbox.validators.SpecialCharValidator"])
def test_functional_happy_path(self):
user = User()
self.assertTrue(user.check_password("Admin0404!"))
self.assertIsNone(user.set_password("Admin0404!"))

@override_settings(AUTH_PASSWORD_VALIDATORS=["ambient_toolbox.validators.auth_password.SpecialCharValidator"])
def test_functional_special_char_missing(self):
user = User()
self.assertFalse(user.check_password("EasyPassword"))
self.assertFalse(user.set_password("EasyPassword"))

0 comments on commit 67e75f6

Please sign in to comment.