From fca831411bdca2179a20eb230ec843c195c97cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Fri, 30 Aug 2019 09:46:25 +0200 Subject: [PATCH] Fix call to logger in REST authentication backend --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/REST.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/REST.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/REST.pm index b24aa16d7..55ce89506 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/REST.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/REST.pm @@ -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; }