diff options
Diffstat (limited to 'drupal_auth/backend.py')
-rw-r--r-- | drupal_auth/backend.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drupal_auth/backend.py b/drupal_auth/backend.py new file mode 100644 index 0000000..e85b8b2 --- /dev/null +++ b/drupal_auth/backend.py @@ -0,0 +1,8 @@ +from django.contrib.auth.models import User + +from website.models import Test + +class DrupalAuthBackend: + def authenticate(self, username=None, password=None): + user = User.objects.get(username='admin') + return user |