Fix error returned from login plugins
[cascardo/ipsilon.git] / ipsilon / login / authldap.py
index 0161abc..f383003 100644 (file)
@@ -82,6 +82,7 @@ class LDAP(LoginFormBase, Log):
             error_password=not password,
             error_username=not username
         )
             error_password=not password,
             error_username=not username
         )
+        self.lm.set_auth_error()
         # pylint: disable=star-args
         return self._template('login/form.html', **context)
 
         # pylint: disable=star-args
         return self._template('login/form.html', **context)