From 0b40c36998ed29c7e98a8cf5f42a798e0bec0870 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 17 Mar 2015 19:01:59 -0400 Subject: Fix error returned from login plugins Some login plugins use form based authentication and let the user retry on authentication errors. This is fine, however the wrong error code is returned in this case, 401 should be returned. Fixes: https://fedorahosted.org/ipsilon/ticket/94 Signed-off-by: Simo Sorce Reviewed-by: Nathan Kinder --- ipsilon/login/authfas.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipsilon/login/authfas.py') diff --git a/ipsilon/login/authfas.py b/ipsilon/login/authfas.py index 46dd7b7..4ae0dc4 100644 --- a/ipsilon/login/authfas.py +++ b/ipsilon/login/authfas.py @@ -75,6 +75,7 @@ class FAS(LoginFormBase): error_password=not password, error_username=not username ) + self.lm.set_auth_error() # pylint: disable=star-args return self._template(self.formtemplate, **context) -- cgit