2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 14:16:42 +00:00

96_allowed.pm: change loglevel from 4 to 3 (Forum #84355)

git-svn-id: https://svn.fhem.de/fhem/trunk@16180 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-02-14 18:03:43 +00:00
parent a75bf485fa
commit c747ad9503

View File

@ -79,14 +79,14 @@ allowed_Authorize($$$$)
return 0 if(!$me->{allowedCommands}); return 0 if(!$me->{allowedCommands});
# Return 0: allow stacking with other instances, see Forum#46380 # Return 0: allow stacking with other instances, see Forum#46380
return 0 if($me->{allowedCommands} =~ m/\b\Q$arg\E\b/); return 0 if($me->{allowedCommands} =~ m/\b\Q$arg\E\b/);
Log3 $me, 4, "Forbidden command $arg for $cl->{NAME}"; Log3 $me, 3, "Forbidden command $arg for $cl->{NAME}";
return 2; return 2;
} }
if($type eq "devicename") { if($type eq "devicename") {
return 0 if(!$me->{allowedDevices}); return 0 if(!$me->{allowedDevices});
return if($me->{allowedDevices} =~ m/\b\Q$arg\E\b/); return if($me->{allowedDevices} =~ m/\b\Q$arg\E\b/);
Log3 $me, 4, "Forbidden device $arg for $cl->{NAME}"; Log3 $me, 3, "Forbidden device $arg for $cl->{NAME}";
return 2; return 2;
} }
@ -146,7 +146,7 @@ allowed_Authenticate($$$$)
} }
} }
Log3 $me, 4, "Login denied for $user via $cl->{NAME}" if(!$pwok); Log3 $me, 3, "Login denied for $user via $cl->{NAME}" if(!$pwok);
# Add Cookie header ONLY if authentication with basicAuth was succesful # Add Cookie header ONLY if authentication with basicAuth was succesful
if($pwok && (!defined($authcookie) || $secret ne $authcookie)) { if($pwok && (!defined($authcookie) || $secret ne $authcookie)) {