From 2c8cbbefe6cb859dacea688522616492f1b94f31 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Tue, 23 Mar 2021 09:17:51 +0100 Subject: [PATCH] "xxx is allowed to update 2FA" should be a debug message --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Plugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Plugin.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Plugin.pm index fffddd769..3053ea1fc 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Plugin.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Plugin.pm @@ -107,7 +107,7 @@ sub createNotification { sub canUpdateSfa { my ( $self, $req, $action ) = @_; my $user = $req->userData->{ $self->conf->{whatToTrace} }; - my $msg = undef; + my $msg = undef; # Test action if ( $action && $action eq 'delete' ) { @@ -157,7 +157,7 @@ sub canUpdateSfa { $msg = 'notAuthorized'; } } - $self->userLogger->info("$user is allowed to update 2FA") unless $msg; + $self->logger->debug("$user is allowed to update 2FA") unless $msg; return $msg; }