From 38d4b11df00b32f12ebe131876df560ebfc2cfe6 Mon Sep 17 00:00:00 2001 From: delmar <> Date: Sat, 13 Feb 2021 15:42:48 +0000 Subject: [PATCH] 70_ZoneMinder: fixed authentication for 1.34.x, API 2.0 git-svn-id: https://svn.fhem.de/fhem/trunk@23733 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_ZoneMinder.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 81c9c3936..e944df7f1 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 70_ZoneMinder: fixed authentication for 1.34.x, API 2.0 - feature: 98_weekprofile: custom temperature keywords - change: 72_TA_CMI_JSON: introduced module package - bugfix: 73_ElectricityCalculator: Use Time::Local added for compatibility diff --git a/fhem/FHEM/70_ZoneMinder.pm b/fhem/FHEM/70_ZoneMinder.pm index 3fac34976..4ea73928d 100755 --- a/fhem/FHEM/70_ZoneMinder.pm +++ b/fhem/FHEM/70_ZoneMinder.pm @@ -219,7 +219,7 @@ sub ZoneMinder_Get_API_Login_URL { $result = "$zmWebUrl/index.php?username=$username&password=$password&action=login&view=console"; } elsif ( $apiVersion eq 'post132' ) { my $zmApiUrl = ZoneMinder_getZmApiUrl($hash); - $result = "$zmApiUrl/host/login.json?user=$username&pass=$password"; + $result = "$zmApiUrl/host/login.json?user=$username&pass=$password&stateful=1"; } return $result;