From 23529fb19594ffcc6ba6d716356b828157200288 Mon Sep 17 00:00:00 2001 From: Curtis Maloney Date: Mon, 13 Jul 2015 12:27:32 +1000 Subject: [PATCH] Explicitly passed rounds as rounds to bcrypt.gensalt() --- django/contrib/auth/hashers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()