Return PAM errors from mod_intercept_form_submit
authorRob Crittenden <rcritten@redhat.com>
Tue, 14 Jul 2015 19:35:21 +0000 (15:35 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 15 Jul 2015 14:39:20 +0000 (16:39 +0200)
commit426f03dffc8f648a12b5f8a4b2ab30c8b4498be3
tree0cdf26ef9a5bde9c13c79b7c10b17c0f07769dd4
parentac7c20cca81c3d23ee66f224030b316bdff2274a
Return PAM errors from mod_intercept_form_submit

This fixes several problems:

1. The PAM error was being retrieved from the wrong location
2. The error was not always logged properly
3. The error was not propogated up
4. Even if the error had been propgated up the auth_failed
   routine failed to pass it to the error page template.

A dictionary is used to translate the PAM errors into something
more consulable. This can be used eventually to translate
into other languages.

https://fedorahosted.org/ipsilon/ticket/69

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/login/authform.py
ipsilon/login/common.py