add the shared secrect to the reply

This commit is contained in:
Madpeter 2024-06-23 22:01:55 +01:00
parent 684b305af5
commit 74b5ab853c

View file

@ -42,7 +42,7 @@ namespace SecondBotEvents.Services
else if (A.StartsWith("http") == true) else if (A.StartsWith("http") == true)
{ {
long unixtime = SecondbotHelpers.UnixTimeNow(); 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 client = new RestClient(A);
var request = new RestRequest("Inventory/Update", Method.Post); var request = new RestRequest("Inventory/Update", Method.Post);
request.AddParameter("token", token); request.AddParameter("token", token);