We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e05afc1 commit c9c8ae0Copy full SHA for c9c8ae0
secureauth/backend.py
@@ -1,12 +1,12 @@
1
# -*- coding: utf-8 -*-
2
3
-from django.contrib.auth.backends import ModelBackend
4
from django.db.models import get_model
+from django.contrib.auth import authenticate
5
6
7
-class AuthBackend(ModelBackend):
+class AuthBackend(object):
8
def auth(self, credentials, method='', code=''):
9
- user = super(AuthBackend, self).authenticate(**credentials)
+ user = authenticate(**credentials)
10
auth_backend = get_model('secureauth', 'UserAuth%s' % method)
11
12
if auth_backend is not None and user is not None:
0 commit comments