diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py index 0188f4a4e7..3d585be5cc 100644 --- a/django/contrib/auth/hashers.py +++ b/django/contrib/auth/hashers.py @@ -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()