accept a 'request' argument and the authentication backend (#49189)

This commit is contained in:
Emmanuel Cazenave 2020-11-26 14:06:32 +01:00
parent bb5b695f75
commit 9aa59cef6c
1 changed files with 1 additions and 1 deletions

View File

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