2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 12:18:46 +00:00

96_allowed.pm/91_watchdog.pm: bugfixes

git-svn-id: https://svn.fhem.de/fhem/trunk@10301 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-12-29 20:08:11 +00:00
parent 8dced6203d
commit e0c1a0bca3
2 changed files with 2 additions and 2 deletions

View File

@ -392,5 +392,5 @@ watchdog_Attr(@)
<br> <br>
</ul> </ul>
=end html =end html_DE
=cut =cut

View File

@ -113,7 +113,7 @@ allowed_Authenticate($$$$)
my $pw = AttrVal($aName, "password", undef); my $pw = AttrVal($aName, "password", undef);
if(!$pw) { if(!$pw) {
$pw = AttrVal($aName, "globalpassword", undef); $pw = AttrVal($aName, "globalpassword", undef);
$pw = undef if($pw && $cl->{NAME} !~ m/^telnet:127.0.0.1/); $pw = undef if($pw && $cl->{NAME} =~ m/^telnet:127.0.0.1/);
} }
return 0 if(!$pw); return 0 if(!$pw);
return 2 if(!defined($param)); return 2 if(!defined($param));