diff options
author | Jayaram Pai | 2013-12-04 19:10:05 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-04 19:10:05 +0530 |
commit | e0bbd9f308e03d1d4e5b2f1e668b8958c81c039e (patch) | |
tree | 93b24895f1cb1e2c87fdc69edae688fbbed71864 /drupal_auth | |
parent | 57eedfbebc481aab4040ecda57d23eabf828733f (diff) | |
download | FOSSEE-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__.py | 0 | ||||
-rw-r--r-- | drupal_auth/backend.py | 8 |
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 |