Commit 395090b5 authored by root's avatar root
Browse files

More meaningful login failure explanations

parent 7675d405
......@@ -400,8 +400,8 @@ class LoginForm(AuthenticationForm):
try:
super(LoginForm, self).clean()
except forms.ValidationError, e:
if self.user_cache is None:
raise
# if self.user_cache is None:
# raise
if self.request:
if not self.request.session.test_cookie_worked():
raise
......
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