mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
Fixed #26016 -- Restored contrib.auth hashers compatibility with py-bcrypt.
Reverted "Explicitly passed rounds as rounds to bcrypt.gensalt()" This reverts commit 23529fb19594ffcc6ba6d716356b828157200288.
This commit is contained in:
parent
0db6367fe2
commit
f0ad641628
@ -286,7 +286,7 @@ class BCryptSHA256PasswordHasher(BasePasswordHasher):
|
|||||||
|
|
||||||
def salt(self):
|
def salt(self):
|
||||||
bcrypt = self._load_library()
|
bcrypt = self._load_library()
|
||||||
return bcrypt.gensalt(rounds=self.rounds)
|
return bcrypt.gensalt(self.rounds)
|
||||||
|
|
||||||
def encode(self, password, salt):
|
def encode(self, password, salt):
|
||||||
bcrypt = self._load_library()
|
bcrypt = self._load_library()
|
||||||
|
@ -76,3 +76,6 @@ Bugfixes
|
|||||||
|
|
||||||
* Made ``loaddata`` skip disabling and enabling database constraints when it
|
* Made ``loaddata`` skip disabling and enabling database constraints when it
|
||||||
doesn't load any fixtures (:ticket:`23372`).
|
doesn't load any fixtures (:ticket:`23372`).
|
||||||
|
|
||||||
|
* Restored ``contrib.auth`` hashers compatibility with py-bcrypt
|
||||||
|
(:ticket:`26016`).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user