Fix call to logger in REST authentication backend
This commit is contained in:
parent
177f446f25
commit
fca831411b
|
@ -8,7 +8,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
|
||||||
PE_OK
|
PE_OK
|
||||||
);
|
);
|
||||||
|
|
||||||
our $VERSION = '2.0.3';
|
our $VERSION = '2.0.6';
|
||||||
|
|
||||||
extends 'Lemonldap::NG::Portal::Auth::_WebForm',
|
extends 'Lemonldap::NG::Portal::Auth::_WebForm',
|
||||||
'Lemonldap::NG::Portal::Lib::REST';
|
'Lemonldap::NG::Portal::Lib::REST';
|
||||||
|
@ -34,7 +34,7 @@ sub authenticate {
|
||||||
{ user => $req->user, password => $req->data->{password} } );
|
{ user => $req->user, password => $req->data->{password} } );
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->logger("Auth error: $@");
|
$self->logger->error("Auth error: $@");
|
||||||
$self->setSecurity($req);
|
$self->setSecurity($req);
|
||||||
return PE_ERROR;
|
return PE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user