Fix call to logger in REST authentication backend

This commit is contained in:
Clément OUDOT 2019-08-30 09:46:25 +02:00
parent 177f446f25
commit fca831411b

View File

@ -8,7 +8,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_OK
);
our $VERSION = '2.0.3';
our $VERSION = '2.0.6';
extends 'Lemonldap::NG::Portal::Auth::_WebForm',
'Lemonldap::NG::Portal::Lib::REST';
@ -34,7 +34,7 @@ sub authenticate {
{ user => $req->user, password => $req->data->{password} } );
};
if ($@) {
$self->logger("Auth error: $@");
$self->logger->error("Auth error: $@");
$self->setSecurity($req);
return PE_ERROR;
}