Also set login_failed in case of form errors
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 21 Jan 2013 15:27:19 +0000 (16:27 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 21 Jan 2013 16:15:39 +0000 (17:15 +0100)
commit69b5623552a86a7cad92571e937384836cf6165c
tree4ca462e6f9bbcb834d9efba27a60a9c7a79f4e2e
parenta89df96132a897b1ac31da8719cd6dc0d621cc13
Also set login_failed in case of form errors

If we send a POST request to the login page which contained form errors
(e.g. a too short password), the variable "login_failed" was not set to
true. This condition was tested by the test suite however, so we should
make sure that login_failed is set even if the form failed to validate.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/auth/views.py