diff --git a/fhem/FHEM/96_allowed.pm b/fhem/FHEM/96_allowed.pm index 3ae9bc257..8f0062394 100644 --- a/fhem/FHEM/96_allowed.pm +++ b/fhem/FHEM/96_allowed.pm @@ -175,7 +175,6 @@ allowed_Authenticate($$$$) my $pw = AttrVal($aName, "password", undef); if(!$pw) { $pw = AttrVal($aName, "globalpassword", undef); - return 2 if($pw && !defined($param)); $pw = undef if($pw && $cl->{NAME} =~ m/_127.0.0.1_/); } return 0 if(!$pw); diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 1a84af0f2..79c75e6bf 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -5356,7 +5356,7 @@ SecurityCheck() my @fnd; foreach my $sdev (devspec2array("TYPE=(telnet|FHEMWEB)")) { next if(!$defs{$sdev} || $defs{$sdev}{TEMPORARY}); - my $hash = { SNAME=>$sdev, TYPE=>$defs{$sdev}{TYPE} }; + my $hash = { SNAME=>$sdev, TYPE=>$defs{$sdev}{TYPE}, NAME=>"SecurityCheck"}; push(@fnd, " $sdev is not password protected") if(!Authenticate($hash, undef)); }