"xxx is allowed to update 2FA" should be a debug message
This commit is contained in:
parent
2d60af304f
commit
2c8cbbefe6
|
@ -107,7 +107,7 @@ sub createNotification {
|
||||||
sub canUpdateSfa {
|
sub canUpdateSfa {
|
||||||
my ( $self, $req, $action ) = @_;
|
my ( $self, $req, $action ) = @_;
|
||||||
my $user = $req->userData->{ $self->conf->{whatToTrace} };
|
my $user = $req->userData->{ $self->conf->{whatToTrace} };
|
||||||
my $msg = undef;
|
my $msg = undef;
|
||||||
|
|
||||||
# Test action
|
# Test action
|
||||||
if ( $action && $action eq 'delete' ) {
|
if ( $action && $action eq 'delete' ) {
|
||||||
|
@ -157,7 +157,7 @@ sub canUpdateSfa {
|
||||||
$msg = 'notAuthorized';
|
$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;
|
return $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user