diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py index 1a9ca4bd3e..74717c0c5c 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(rounds=self.rounds) + return bcrypt.gensalt(self.rounds) def encode(self, password, salt): bcrypt = self._load_library() diff --git a/docs/releases/1.9.1.txt b/docs/releases/1.9.1.txt index a01eb09d19..46e4f25807 100644 --- a/docs/releases/1.9.1.txt +++ b/docs/releases/1.9.1.txt @@ -76,3 +76,6 @@ Bugfixes * Made ``loaddata`` skip disabling and enabling database constraints when it doesn't load any fixtures (:ticket:`23372`). + +* Restored ``contrib.auth`` hashers compatibility with py-bcrypt + (:ticket:`26016`).