mirror of
https://github.com/Hopiu/django.git
synced 2026-05-19 13:01:06 +00:00
Explicitly passed rounds as rounds to bcrypt.gensalt()
This commit is contained in:
parent
276356b36d
commit
23529fb195
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ class BCryptSHA256PasswordHasher(BasePasswordHasher):
|
|||
|
||||
def salt(self):
|
||||
bcrypt = self._load_library()
|
||||
return bcrypt.gensalt(self.rounds)
|
||||
return bcrypt.gensalt(rounds=self.rounds)
|
||||
|
||||
def encode(self, password, salt):
|
||||
bcrypt = self._load_library()
|
||||
|
|
|
|||
Loading…
Reference in a new issue