Commit 4599c4f3 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Redirect local login GET requests to login

parent 3694d44d
......@@ -104,7 +104,7 @@ if settings.EMAILCHANGE_ENABLED:
if 'local' in settings.IM_MODULES:
urlpatterns += patterns(
url(r'^local/?$', 'login'),
url(r'^local/?$', 'login', name='local_login'),
url(r'^password_change/?$', 'password_change', {
......@@ -68,6 +68,9 @@ def login(request, on_failure='im/login.html'):
on_failure: the template name to render on login failure
if request.method == 'GET':
return HttpResponseRedirect(reverse('login'))
was_limited = getattr(request, 'limited', False)
form = LoginForm(data=request.POST,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment