From bfffec73638a6a069493224b26f9e440a9179a8c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 14 Nov 2024 17:55:35 -0500 Subject: [PATCH] Temp added vars session_ip and session_user_agent to validate_api_key so IP and User agent is logged with the new logAction function --- api/v1/validate_api_key.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v1/validate_api_key.php b/api/v1/validate_api_key.php index 3a4bef5e..f46e4bff 100644 --- a/api/v1/validate_api_key.php +++ b/api/v1/validate_api_key.php @@ -20,6 +20,10 @@ $_POST = json_decode(file_get_contents('php://input'), true); $ip = sanitizeInput(getIP()); $user_agent = sanitizeInput($_SERVER['HTTP_USER_AGENT']); +// Temp Added this to work with the new logAction function +$session_ip = $ip; +$session_user_agent = $user_agent; + // Setup return array $return_arr = array();