From 579aaaadb07f19d1d3071d88527d5ebacbec4a76 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 16 Dec 2024 16:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Middleware/AuthenticationMiddleware.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Middleware/AuthenticationMiddleware.cs b/IRaCIS.Core.Application/Middleware/AuthenticationMiddleware.cs index dc3ba55..3303d8b 100644 --- a/IRaCIS.Core.Application/Middleware/AuthenticationMiddleware.cs +++ b/IRaCIS.Core.Application/Middleware/AuthenticationMiddleware.cs @@ -31,7 +31,7 @@ namespace IRaCIS.Core.API.Middleware { if (!await IsValidRequest(context)) { - context.Response.StatusCode = StatusCodes.Status409Conflict; ; + context.Response.StatusCode = StatusCodes.Status200OK; ; context.Response.ContentType = "application/json"; var msg = JsonConvert.SerializeObject(ResponseOutput.NotOk("Access was denied due to lack of permission")); Console.WriteLine(msg);