Support Django 2.1
This commit is contained in:
parent
fbfb6da975
commit
a1f7fd3081
4 changed files with 6 additions and 5 deletions
|
|
@ -10,11 +10,12 @@ class CaseInsensitiveModelBackend(ModelBackend):
|
|||
|
||||
"""
|
||||
|
||||
def authenticate(self, username=None, password=None, autologin=None):
|
||||
def authenticate(self, request, username=None, password=None, autologin=None):
|
||||
"""
|
||||
Custom authenticate with bypass for auto-logins
|
||||
|
||||
Args:
|
||||
request (Request): Request object.
|
||||
username (str, optional): Name of user to authenticate.
|
||||
password (str, optional): Password of user
|
||||
autologin (Account, optional): If given, assume this is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue