From 55d45c5a40cda190bbfe4033c855824696738028 Mon Sep 17 00:00:00 2001 From: Corey Reichle Date: Thu, 21 Mar 2019 14:29:15 -0400 Subject: [PATCH] Update key --- githook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/githook.php b/githook.php index 225e10b..7c9bf4c 100644 --- a/githook.php +++ b/githook.php @@ -3,7 +3,7 @@ /* gitea deploy webhook */ /* security */ -$access_token = '1234567890'; +$access_token = 'abcdefghijklmnop'; $ansible_lastrun = '/dev/shm/ansible-hook-last-run'; $ansible_dropfile = '/dev/shm/run-ansible'; $www_lastrun = '/dev/shm/www-hook-last-run'; @@ -17,7 +17,7 @@ $json = file_get_contents('php://input'); $data = json_decode($json, true); $client_token = $data["secret"]; -if ($client_token != $access_token) +if ($client_token !== $access_token) { http_response_code(403); echo "HTTP 403 - Forbidden, P1.";