mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
Aligns the unauthorized message of the access token endpoint
This commit is contained in:
1 parent
675312e03f
commit
e29ec47925
1 file changed
+1
-1
+1
-1
@@ -42,7 +42,7 @@ public class GetApiAccessTokenEndpoint : BaseEndpoint<EmptyRequest, IResult>
|
||||
return Task.FromResult(Results.Problem(
|
||||
statusCode: StatusCodes.Status401Unauthorized,
|
||||
title: "Unauthorized",
|
||||
detail: "You are not authorized"));
|
||||
detail: "Authentication failed"));
|
||||
|
||||
string? token = User.FindFirst("Token")?.Value;
|
||||
if (string.IsNullOrEmpty(token))
|
||||
|
||||
Reference in new issue
Block a user