summaryrefslogtreecommitdiff
path: root/drupal_auth
diff options
context:
space:
mode:
authorJayaram Pai2013-12-04 19:10:05 +0530
committerJayaram Pai2013-12-04 19:10:05 +0530
commite0bbd9f308e03d1d4e5b2f1e668b8958c81c039e (patch)
tree93b24895f1cb1e2c87fdc69edae688fbbed71864 /drupal_auth
parent57eedfbebc481aab4040ecda57d23eabf828733f (diff)
downloadFOSSEE-Forum-e0bbd9f308e03d1d4e5b2f1e668b8958c81c039e.tar.gz
FOSSEE-Forum-e0bbd9f308e03d1d4e5b2f1e668b8958c81c039e.tar.bz2
FOSSEE-Forum-e0bbd9f308e03d1d4e5b2f1e668b8958c81c039e.zip
basic DrupalBackend and DrupalAuthManager
Diffstat (limited to 'drupal_auth')
-rw-r--r--drupal_auth/__init__.py0
-rw-r--r--drupal_auth/backend.py8
2 files changed, 8 insertions, 0 deletions
diff --git a/drupal_auth/__init__.py b/drupal_auth/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/drupal_auth/__init__.py
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