From 0f9f63a1a40426b24e0cdb68f148fb000ce8060e Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 28 Sep 2018 09:55:29 +0000 Subject: [PATCH] 96_allowed.pm: fix MQTT2_SERVER direct connection (Forum #91356) git-svn-id: https://svn.fhem.de/fhem/trunk@17419 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/96_allowed.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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