public IActionResult Post([FromForm] LoginModel authModel) { var auth = _userService.Authenticate(authModel.UserName, authModel.Password); if (auth == null) { return(Unauthorized("Username or password invalid")); } return(Ok(auth)); }