Fix error returned from login plugins
authorSimo Sorce <simo@redhat.com>
Tue, 17 Mar 2015 23:01:59 +0000 (19:01 -0400)
committerSimo Sorce <simo@redhat.com>
Wed, 18 Mar 2015 00:37:19 +0000 (20:37 -0400)
commit0b40c36998ed29c7e98a8cf5f42a798e0bec0870
tree751f561b495be02e5188dbe3a76a76352fad0bc3
parentb6cf2a56cf951b059e2755742522413c304e858e
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>
ipsilon/login/authfas.py
ipsilon/login/authldap.py
ipsilon/login/authpam.py
ipsilon/login/authtest.py
ipsilon/login/common.py