remove RequiresAuth property
This commit is contained in:
@@ -484,7 +484,7 @@ public class ApiServer : IApiServer
|
||||
if (string.IsNullOrWhiteSpace(authKey) || DecodeAuthKey(authKey) is not string authKeyDecoded)
|
||||
authKeyDecoded = null!;
|
||||
isAuthenticated = CheckAuthentication(authKeyDecoded, handler.Handler, context);
|
||||
if (handler.Attribute.RequiesAuth && !isAuthenticated)
|
||||
if (!isAuthenticated)
|
||||
return new(ApiResult.Unauthorized(), null);
|
||||
|
||||
// Get required infos
|
||||
|
||||
Reference in New Issue
Block a user