Revision d75baafa
b/snf-astakos-app/astakos/im/urls.py | ||
---|---|---|
104 | 104 |
if 'local' in settings.IM_MODULES: |
105 | 105 |
urlpatterns += patterns( |
106 | 106 |
'astakos.im.views.target.local', |
107 |
url(r'^local/?$', 'login'), |
|
107 |
url(r'^local/?$', 'login', name='local_login'),
|
|
108 | 108 |
url(r'^password_change/?$', 'password_change', { |
109 | 109 |
'post_change_redirect':'profile', |
110 | 110 |
'password_change_form':ExtendedPasswordChangeForm}, |
b/snf-astakos-app/astakos/im/views/target/local.py | ||
---|---|---|
68 | 68 |
""" |
69 | 69 |
on_failure: the template name to render on login failure |
70 | 70 |
""" |
71 |
if request.method == 'GET': |
|
72 |
return HttpResponseRedirect(reverse('login')) |
|
73 |
|
|
71 | 74 |
was_limited = getattr(request, 'limited', False) |
72 | 75 |
form = LoginForm(data=request.POST, |
73 | 76 |
was_limited=was_limited, |
Also available in: Unified diff