public IActionResult Authenticate([FromBody] UserCred userCred) { var token = jwtAuthenticationManager.Authenticate(userCred.Username, userCred.Password); if (token == null) { return(Unauthorized()); } return(Ok(token)); }
public IActionResult Authenticate([FromBody] UserCred userCred) { return(Ok()); }