mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: multiple vulnerabilities
This commit is contained in:
@@ -18,7 +18,7 @@ namespace SharpbinV3.Server.Services
|
||||
if (string.IsNullOrEmpty(_authSettings.API_Key_HMAC_Secret))
|
||||
return Utilities.ComputeSha256(input);
|
||||
else
|
||||
return Utilities.ComputeHmacSha256(input, _authSettings.API_Key_HMAC_Secret);
|
||||
return Utilities.ComputeHmacSha256(_authSettings.API_Key_HMAC_Secret, input);
|
||||
}
|
||||
|
||||
public async Task<ApiKey?> GetByKeyAsync(string key)
|
||||
|
||||
Reference in New Issue
Block a user