mirror of https://github.com/django/django.git
Fixed #2325 -- fix the authentication framework to work with new-style classes.
Patch from Joseph Kocherhans. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
50448de634
commit
bd13190499
|
@ -38,7 +38,7 @@ def authenticate(**credentials):
|
|||
if user is None:
|
||||
continue
|
||||
# Annotate the user object with the path of the backend.
|
||||
user.backend = str(backend.__class__)
|
||||
user.backend = "%s.%s" % (backend.__module__, backend.__class__.__name__)
|
||||
return user
|
||||
|
||||
def login(request, user):
|
||||
|
|
Loading…
Reference in New Issue