X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Flogin%2Fauthpam.py;h=ba8ecdd9b7e15768cb72be1c5d2297be27ddf2ec;hp=1de8e0ff6a31afa473ee556db6b266df0508115c;hb=0b40c36998ed29c7e98a8cf5f42a798e0bec0870;hpb=45cb73a21a90084818c3057e362ef9459f1600f3 diff --git a/ipsilon/login/authpam.py b/ipsilon/login/authpam.py index 1de8e0f..ba8ecdd 100644 --- a/ipsilon/login/authpam.py +++ b/ipsilon/login/authpam.py @@ -15,7 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from ipsilon.login.common import LoginFormBase, LoginManagerBase +from ipsilon.login.common import LoginFormBase, LoginManagerBase, \ + LoginManagerInstaller from ipsilon.util.plugin import PluginObject from ipsilon.util import config as pconfig import pam @@ -60,6 +61,7 @@ class Pam(LoginFormBase): error_password=not password, error_username=not username ) + self.lm.set_auth_error() # pylint: disable=star-args return self._template('login/form.html', **context) @@ -115,11 +117,11 @@ for authentication. """ return self.page -class Installer(object): +class Installer(LoginManagerInstaller): def __init__(self, *pargs): + super(Installer, self).__init__() self.name = 'pam' - self.ptype = 'login' self.pargs = pargs def install_args(self, group):