mirror of https://github.com/django/django.git
Explicitly passed rounds as rounds to bcrypt.gensalt()
This commit is contained in:
parent
276356b36d
commit
23529fb195
|
@ -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 New Issue