Skip to content

Commit 63659d5

Browse files
fix: modify the return result status code
1 parent 0d78a39 commit 63659d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public async Task<ActionResult<Token>> ActivateUser(UserActivationModel model)
6868
var token = await _userService.ActiveUser(model);
6969
if (token == null)
7070
{
71-
return Unauthorized();
71+
//return Unauthorized();
72+
return BadRequest();
7273
}
7374
return Ok(token);
7475
}

0 commit comments

Comments
 (0)