From f9b6e0ff8ce656ac98a093ca87bbecba43e0b519 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Thu, 9 Aug 2018 11:46:01 -0400 Subject: [PATCH] Minor doc comments --- src/Tgstation.Server.Host/Controllers/ApiController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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