From 6a44a32ecdaf25beeb4668dea835930a87218493 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Thu, 5 Sep 2019 18:52:40 +0200 Subject: [PATCH] Fix Login, Django 1.11 changed their API. --- re2o/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2o/login.py b/re2o/login.py index 9e18f17d..378f7ea1 100644 --- a/re2o/login.py +++ b/re2o/login.py @@ -232,7 +232,7 @@ class SSHAPasswordHasher(hashers.BasePasswordHasher): class RecryptBackend(ModelBackend): def authenticate(self, username=None, password=None): # we obtain from the classical auth backend the user - user = super(RecryptBackend, self).authenticate(username, password) + user = super(RecryptBackend, self).authenticate(None, username, password) if user: if not(user.pwd_ntlm): # if we dont have NT hash, we create it