2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

76_SMAPortal: contrib 3.1.2

git-svn-id: https://svn.fhem.de/fhem/trunk@22273 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-06-26 12:40:51 +00:00
parent 3477ebc481
commit b73e78bcca

View File

@ -1094,7 +1094,7 @@ return ($state, $errstate);
sub __isLoggedIn {
my $name = shift;
my $username = shift;
my $loginp = shift;
my $loginp = shift // return;
my $sc = $loginp->header('Set-Cookie') // "";
my ($logname) = $sc =~ /SunnyPortalLoginInfo=Username=(.*?)&/sx;
@ -1104,7 +1104,7 @@ sub __isLoggedIn {
return 1;
}
return 0;
return;
}
################################################################