fix cookie handling

This commit is contained in:
Sebastian 2021-05-29 23:25:16 +02:00
parent b0e6fe6ea5
commit b5d2a29a9f
3 changed files with 6 additions and 4 deletions

View File

@ -191,7 +191,7 @@ sub Initialize {
], ],
"release_status": "stable", "release_status": "stable",
"license": "GPL_2", "license": "GPL_2",
"version": "v1.1.4", "version": "v1.1.5",
"author": [ "author": [
"Sebastian Schwarz <ema@il.local>" "Sebastian Schwarz <ema@il.local>"
], ],

View File

@ -1,2 +1,2 @@
UPD 2021-05-29_22:48:25 5197 FHEM/73_HailoLibero.pm UPD 2021-05-29_23:25:02 5197 FHEM/73_HailoLibero.pm
UPD 2021-05-29_23:08:12 11448 lib/FHEM/Hailo/Libero.pm UPD 2021-05-29_23:24:51 11567 lib/FHEM/Hailo/Libero.pm

View File

@ -271,7 +271,9 @@ sub getCookie {
'pin=' 'pin='
.ReadPassword($hash, $name) .ReadPassword($hash, $name)
.'&submit=' .'&submit='
) ) if ( defined(ReadPassword( $hash, $name ))
&& AttrVal( $name, 'LiberoIP', 'none' ) ne 'none'
);
} }
sub setSettings { sub setSettings {