diff --git a/src/Tgstation.Server.Host/Controllers/ApiController.cs b/src/Tgstation.Server.Host/Controllers/ApiController.cs index aa9b13c340..3c33da7540 100644 --- a/src/Tgstation.Server.Host/Controllers/ApiController.cs +++ b/src/Tgstation.Server.Host/Controllers/ApiController.cs @@ -57,7 +57,7 @@ namespace Tgstation.Server.Host.Controllers readonly bool requireInstance; /// - /// Runs after a has been validated. Creates the for the + /// Runs after a has been validated. Creates the for the /// /// The for the operation /// A representing the running operation @@ -135,6 +135,8 @@ namespace Tgstation.Server.Host.Controllers /// public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { + //ALL requests go through this function + if (AuthenticationContext != null && AuthenticationContext.User == null) { //valid token, expired password