Add tarlog support for author keys

This commit is contained in:
Halgari 2023-02-23 21:39:42 -07:00
parent dd9100ccf4
commit 59126d1f25

View File

@ -86,6 +86,9 @@ public class ApiKeyAuthenticationHandler : AuthenticationHandler<ApiKeyAuthentic
if (authorKey != null)
{
if (await _tarLog.Contains(authorKey))
return AuthenticateResult.Fail("Banned author key");
var owner = await _authorKeys.AuthorForKey(authorKey);
if (owner == null)
{