setSecurity if failed login (#1769)

This commit is contained in:
Christophe Maudoux 2019-06-05 11:29:04 +02:00
parent f63a63eedb
commit 30c4a9c787

View File

@ -11,7 +11,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_PP_PASSWORD_EXPIRED
);
our $VERSION = '2.0.3';
our $VERSION = '2.0.5';
# Inheritance: UserDB::LDAP provides all needed ldap functions
extends
@ -70,6 +70,7 @@ sub authenticate {
my $res =
$self->userBind( $req, $req->data->{dn},
password => $req->data->{password} );
$self->setSecurity($req) if ($res);
# Remember password if password reset needed
if (