summaryrefslogtreecommitdiffstats
path: root/forum_modules/localauth/authentication.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-27 16:06:23 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-27 16:07:39 -0400
commitacd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a (patch)
treedbb232a017f71934cfb05b264db0cca40ac00164 /forum_modules/localauth/authentication.py
parent40ea3f482ffdfd648366ed20a87335dc31e92231 (diff)
downloadaskbot-acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a.tar.gz
askbot-acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a.tar.bz2
askbot-acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a.zip
removed authentication module to be replaced with a dedicated app, also switched to table layout for openid signin template temporarily so that it works on IE7 and maybe earlier
Diffstat (limited to 'forum_modules/localauth/authentication.py')
-rwxr-xr-xforum_modules/localauth/authentication.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/forum_modules/localauth/authentication.py b/forum_modules/localauth/authentication.py
deleted file mode 100755
index 770ea08f..00000000
--- a/forum_modules/localauth/authentication.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext, InvalidAuthentication
-from forms import ClassicLoginForm
-
-class LocalAuthConsumer(AuthenticationConsumer):
- def process_authentication_request(self, request):
- form_auth = ClassicLoginForm(request.POST)
-
- if form_auth.is_valid():
- return form_auth.get_user()
- else:
- raise InvalidAuthentication(" ".join(form_auth.errors.values()[0]))
-
-class LocalAuthContext(ConsumerTemplateContext):
- mode = 'STACK_ITEM'
- weight = 1000
- human_name = 'Local authentication'
- stack_item_template = 'modules/localauth/loginform.html'
- show_to_logged_in_user = False \ No newline at end of file