96_allowed.pm: fix globalpassword checking (Forum #47383)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10496 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -147,7 +147,7 @@ allowed_Authenticate($$$$)
|
||||
my $pw = AttrVal($aName, "password", undef);
|
||||
if(!$pw) {
|
||||
$pw = AttrVal($aName, "globalpassword", undef);
|
||||
$pw = undef if($pw && $cl->{NAME} =~ m/^telnet:127.0.0.1/);
|
||||
$pw = undef if($pw && $cl->{NAME} =~ m/_127.0.0.1_/);
|
||||
}
|
||||
return 0 if(!$pw);
|
||||
return 2 if(!defined($param));
|
||||
|
||||
Reference in New Issue
Block a user