diff --git a/fhem/FHEM/96_allowed.pm b/fhem/FHEM/96_allowed.pm index 2a9d6e68a..4029a1775 100644 --- a/fhem/FHEM/96_allowed.pm +++ b/fhem/FHEM/96_allowed.pm @@ -200,13 +200,12 @@ allowed_Authenticate($$$$) return ($pw eq $param) ? 1 : 2; - } elsif(!$param || ($param && $param =~ m/^basicAuth:(.*)/)) { + } else { + $param =~ m/^basicAuth:(.*)/; return allowed_CheckBasicAuth($me, $cl, $1, AttrVal($aName,"basicAuth",undef), $param); } - - return 0; } sub