From 492a352bed5ff090dd9f9b88f3ca8f24bafcc62b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 9 Apr 2021 18:33:32 -0400 Subject: [PATCH] Use updated auth_hash when sending alarm requests --- web/skins/classic/views/js/watch.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 820150457..6dec23151 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -442,9 +442,6 @@ function statusCmdQuery() { if ( monitorType != 'WebSite' ) { var alarmCmdParms = 'view=request&request=alarm&id='+monitorId; - if ( auth_hash ) { - alarmCmdParms += '&auth='+auth_hash; - } var alarmCmdReq = new Request.JSON( { url: monitorUrl, method: 'get', @@ -461,22 +458,22 @@ function getAlarmCmdResponse(respObj, respText) { } function cmdDisableAlarms() { - alarmCmdReq.send(alarmCmdParms+"&command=disableAlarms"); + alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=disableAlarms"); } function cmdEnableAlarms() { - alarmCmdReq.send(alarmCmdParms+"&command=enableAlarms"); + alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=enableAlarms"); } function cmdForceAlarm() { - alarmCmdReq.send(alarmCmdParms+"&command=forceAlarm"); + alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=forceAlarm"); if ( window.event ) { window.event.preventDefault(); } } function cmdCancelForcedAlarm() { - alarmCmdReq.send(alarmCmdParms+"&command=cancelForcedAlarm"); + alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=cancelForcedAlarm"); if ( window.event ) { window.event.preventDefault(); }