Explicitly passed rounds as rounds to bcrypt.gensalt()

This commit is contained in:
Curtis Maloney 2015-07-13 12:27:32 +10:00 committed by Tim Graham
parent 276356b36d
commit 23529fb195
1 changed files with 1 additions and 1 deletions

View File

@ -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()