You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
request is an HttpRequest and may be None if it wasn’t provided to authenticate() (which passes it on to the backend).
user = backend.authenticate(None, *check_user_name(credential))
The text was updated successfully, but these errors were encountered:
tash
changed the title
XMLRPC Auth.login does not work with django.contriub.auth.backends.ModelBackend
XMLRPC Auth.login does not work with django.contrib.auth.backends.ModelBackend
Jan 20, 2020
Calls to Auth.login always return with ''Wrong username or password'' when django.contriub.auth.backends.ModelBackend is used.
Nitrate/src/tcms/xmlrpc/api/auth.py
Line 46 in 2c3c608
This call is wrong, as it takes a request object as first object: https://docs.djangoproject.com/en/3.0/ref/contrib/auth/#django.contrib.auth.backends.ModelBackend.authenticate
Possible fix based on the django documentation
user = backend.authenticate(None, *check_user_name(credential))
The text was updated successfully, but these errors were encountered: