Skip to content

Commit f353cbe

Browse files
committed
Review
1 parent ceacbb6 commit f353cbe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MidlWare/MidlWare.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public async Task InvokeAsync(HttpContext context, IConfiguration configuration)
7474

7575
if (path.StartsWith("/Patch", StringComparison.OrdinalIgnoreCase) && !VLAIdentity.VLAIdentity.VulnerableAdminValidateToken(authHeader, configuration["Secret"]))
7676
{
77-
context.Response.StatusCode = StatusCodes.Status403Forbidden;
77+
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
7878
context.Response.ContentType = "text/html; charset=utf-8";
7979
await context.Response.WriteAsync(UnauthMsg, Encoding.UTF8);
8080
return;
@@ -83,7 +83,7 @@ public async Task InvokeAsync(HttpContext context, IConfiguration configuration)
8383

8484
await _next(context);
8585

86-
// 🔹 Gestion du 404 après exécution du pipeline
86+
// Gestion du 404 après exécution du pipeline
8787
if (context.Response.StatusCode == StatusCodes.Status404NotFound)
8888
{
8989
context.Response.ContentType = "text/html; charset=utf-8";

appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88
},
99
"AllowedHosts": "*",
10-
"Secret": "7E91A318E0BCA7601717E409E86342D8AA7B54AE1BE4033577921B2B1D09F57B",
10+
"Secret": "3391A318E0BCA7601717E409E86342D8AB7B54AE1BE4033577921B2B1D99F58F",
1111
"LogFile": "Logs.html"
1212

1313
}

0 commit comments

Comments
 (0)