accept a 'request' argument and the authentication backend (#49189)
This commit is contained in:
parent
bb5b695f75
commit
9aa59cef6c
|
@ -11,7 +11,7 @@ class DelegationAuthBackend:
|
|||
supports_object_permissions = False
|
||||
supports_anonymous_user = False
|
||||
|
||||
def authenticate(self, username=None, password=None):
|
||||
def authenticate(self, request, username=None, password=None):
|
||||
try:
|
||||
if '-' in username:
|
||||
prefix, suffix = username.rsplit('-', 1)
|
||||
|
|
Loading…
Reference in New Issue