示例#1
0
        public IActionResult Authenticate([FromBody] UserCred userCred)
        {
            var token = jwtAuthenticationManager.Authenticate(userCred.Username, userCred.Password);

            if (token == null)
            {
                return(Unauthorized());
            }
            return(Ok(token));
        }
示例#2
0
 public IActionResult Authenticate([FromBody] UserCred userCred)
 {
     return(Ok());
 }