setSecurity if failed login (#1769)
This commit is contained in:
parent
f63a63eedb
commit
30c4a9c787
|
@ -11,7 +11,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
|
||||||
PE_PP_PASSWORD_EXPIRED
|
PE_PP_PASSWORD_EXPIRED
|
||||||
);
|
);
|
||||||
|
|
||||||
our $VERSION = '2.0.3';
|
our $VERSION = '2.0.5';
|
||||||
|
|
||||||
# Inheritance: UserDB::LDAP provides all needed ldap functions
|
# Inheritance: UserDB::LDAP provides all needed ldap functions
|
||||||
extends
|
extends
|
||||||
|
@ -70,6 +70,7 @@ sub authenticate {
|
||||||
my $res =
|
my $res =
|
||||||
$self->userBind( $req, $req->data->{dn},
|
$self->userBind( $req, $req->data->{dn},
|
||||||
password => $req->data->{password} );
|
password => $req->data->{password} );
|
||||||
|
$self->setSecurity($req) if ($res);
|
||||||
|
|
||||||
# Remember password if password reset needed
|
# Remember password if password reset needed
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user