From 30c4a9c7878196780e01d32074062c16f78566da Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Wed, 5 Jun 2019 11:29:04 +0200 Subject: [PATCH] setSecurity if failed login (#1769) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm index 21fdbb23b..3f408f248 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm @@ -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 (