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

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
This commit is contained in:
delmar 2021-02-13 15:42:48 +00:00
parent 571f1502a5
commit 38d4b11df0
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;