public IActionResult Verify([FromBody] RequestClass param) { TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication(); return(Ok(objTwoFactAuthentication.VerifyCode(param.UserName, param.AppCode))); }
public IActionResult Renew([FromBody] RequestClass param) { TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication(); return(Ok(objTwoFactAuthentication.Renew(param.UserName))); }
public IActionResult Register([FromBody] RequestClass param) { TwoFactAuthentication objTwoFactAuthentication = new TwoFactAuthentication(); return(Ok(objTwoFactAuthentication.Is2FAEnable(param.UserName))); }