From 74b5ab853c3cf3295682f92ed4e3db1dc71e24c7 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 23 Jun 2024 22:01:55 +0100 Subject: [PATCH] add the shared secrect to the reply --- SecondBotEvents/Services/EventsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecondBotEvents/Services/EventsService.cs b/SecondBotEvents/Services/EventsService.cs index 6ccb9c5..afedf38 100644 --- a/SecondBotEvents/Services/EventsService.cs +++ b/SecondBotEvents/Services/EventsService.cs @@ -42,7 +42,7 @@ namespace SecondBotEvents.Services else if (A.StartsWith("http") == true) { long unixtime = SecondbotHelpers.UnixTimeNow(); - string token = SecondbotHelpers.GetSHA1(unixtime.ToString() + "EventService" + GetClient().Self.AgentID + output); + string token = SecondbotHelpers.GetSHA1(unixtime.ToString() + "EventService" + GetClient().Self.AgentID + output+master.CommandsService.myConfig.GetSharedSecret()); var client = new RestClient(A); var request = new RestRequest("Inventory/Update", Method.Post); request.AddParameter("token", token);