8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Fix Login, Django 1.11 changed their API.

This commit is contained in:
Hugo Levy-Falk 2019-09-05 18:52:40 +02:00
parent 8d4aac1e49
commit 6a44a32ecd

View file

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