Esempio n. 1
0
        public IActionResult Verify([FromBody] RequestClass param)
        {
            TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication();

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

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

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