fix: modify the return result status code

This commit is contained in:
AnonymousDotNet 2024-09-29 12:48:32 +08:00
parent 0d78a3996a
commit 63659d535a

View file

@ -68,7 +68,8 @@ public class UserController : ControllerBase
var token = await _userService.ActiveUser(model);
if (token == null)
{
return Unauthorized();
//return Unauthorized();
return BadRequest();
}
return Ok(token);
}