예제 #1
0
        public IActionResult Verify([FromBody] RequestClass param)
        {
            TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication();

            return(Ok(objTwoFactAuthentication.VerifyCode(param.UserName, param.AppCode)));
        }
예제 #2
0
        public IActionResult Renew([FromBody] RequestClass param)
        {
            TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication();

            return(Ok(objTwoFactAuthentication.Renew(param.UserName)));
        }
예제 #3
0
        public IActionResult Register([FromBody] RequestClass param)
        {
            TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication();

            return(Ok(objTwoFactAuthentication.Is2FAEnable(param.UserName)));
        }