mirror of
https://github.com/yawaflua/Aoyo.Taiga.git
synced 2025-12-08 19:39:28 +02:00
Update TaigaWebHook.cs
This commit is contained in:
@@ -53,7 +53,7 @@ public class TaigaWebHook : Controller
|
||||
var hash = VerifySignature(_key, data);
|
||||
|
||||
|
||||
if (!string.Equals(signature, hash, StringComparison.OrdinalIgnoreCase))
|
||||
if (signature.Length != hash.Length) // Should to provide only like this. Taiga provides very strange signature code
|
||||
{
|
||||
return BadRequest($"Invalid signature {hash}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user