summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/authfas.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-03-17 19:01:59 -0400
committerSimo Sorce <simo@redhat.com>2015-03-17 20:37:19 -0400
commit0b40c36998ed29c7e98a8cf5f42a798e0bec0870 (patch)
tree751f561b495be02e5188dbe3a76a76352fad0bc3 /ipsilon/login/authfas.py
parentb6cf2a56cf951b059e2755742522413c304e858e (diff)
downloadipsilon-0b40c36998ed29c7e98a8cf5f42a798e0bec0870.tar.gz
ipsilon-0b40c36998ed29c7e98a8cf5f42a798e0bec0870.tar.xz
ipsilon-0b40c36998ed29c7e98a8cf5f42a798e0bec0870.zip
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 <simo@redhat.com> Reviewed-by: Nathan Kinder <nkinder@redhat.com>
Diffstat (limited to 'ipsilon/login/authfas.py')
-rw-r--r--ipsilon/login/authfas.py1
1 files changed, 1 insertions, 0 deletions
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)