diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 10:27:04 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
| commit | 0aa6a602b2b1cac6fe8e55051eed493b9cea7b81 (patch) | |
| tree | 172a55c26ec312e4988c40647632ecd9f866880f /django/contrib/auth/base_user.py | |
| parent | e7208f13c0448387e56c340eed46e1ed9ef9997e (diff) | |
Refs #31842 -- Removed DEFAULT_HASHING_ALGORITHM transitional setting.
Per deprecation timeline.
Diffstat (limited to 'django/contrib/auth/base_user.py')
| -rw-r--r-- | django/contrib/auth/base_user.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py index 26145a7e50..945a7a3d8a 100644 --- a/django/contrib/auth/base_user.py +++ b/django/contrib/auth/base_user.py @@ -4,7 +4,6 @@ not in INSTALLED_APPS. """ import unicodedata -from django.conf import settings from django.contrib.auth import password_validation from django.contrib.auth.hashers import ( check_password, is_password_usable, make_password, @@ -129,10 +128,7 @@ class AbstractBaseUser(models.Model): return salted_hmac( key_salt, self.password, - # RemovedInDjango40Warning: when the deprecation ends, replace - # with: - # algorithm='sha256', - algorithm=settings.DEFAULT_HASHING_ALGORITHM, + algorithm='sha256', ).hexdigest() @classmethod |
