Skip to content

Commit

Permalink
username as json
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineatstariongroup committed Jan 27, 2025
1 parent bb618e9 commit 22535e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CometServer/Modules/Authentication/UsernameModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public override void AddRoutes(IEndpointRouteBuilder app)
try
{
identity = await this.Authorize(appConfigService, credentialsService, req);
await res.WriteAsync(credentialsService.Credentials.UserName);
await res.AsJson(credentialsService.Credentials.UserName);
}
catch (AuthorizationException)
{
Expand Down

0 comments on commit 22535e4

Please sign in to comment.