mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Fix Login, Django 1.11 changed their API.
This commit is contained in:
parent
8d4aac1e49
commit
6a44a32ecd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue