예제 #1
0
        public IActionResult Authenticate([FromBody] UserCred userCred)
        {
            var token = _customAuthenticationManager.Authenticate
                            (userCred.UserName, userCred.Password);

            if (token == null)
            {
                return(Unauthorized());
            }
            return(Ok(token));
        }
예제 #2
0
 public void post([FromBody] UserCred value)
 {
 }