コード例 #1
0
        public static int otpAuthen(string username, string otppass)
        {
            SecuOTPService service = new SecuOTPService("https://secuotp-test.co.th", "5L44G-7XR1G-V5RAM-JC6KG");
            ServiceStatus  status  = service.authenticateOneTimePassword(username, otppass);

            return(status.getStatusId());
        }
コード例 #2
0
        public static int disableOTP(string username, string removalCode)
        {
            SecuOTPService changeotp = new SecuOTPService("https://secuotp-test.co.th", "5L44G-7XR1G-V5RAM-JC6KG");
            ServiceStatus  status    = changeotp.disableEndUser(username, removalCode);

            return(status.getStatusId());
        }
コード例 #3
0
        public static int enableOTP(string username, string email, string firstName, string lastName, string phone)
        {
            SecuOTPService changeotp = new SecuOTPService("https://secuotp-test.co.th", "5L44G-7XR1G-V5RAM-JC6KG");
            ServiceStatus  status    = changeotp.registerEndUser(username, email, firstName, lastName, phone);

            return(status.getStatusId());
        }
コード例 #4
0
        public static int enableOTP(
            string username, string fname,
            string lname, string email, string pnumber)
        {
            SecuOTPService service = new SecuOTPService("https://secuotp-test.co.th", "5L44G-7XR1G-V5RAM-JC6KG");
            ServiceStatus  status  = service.registerEndUser(username, email, fname, lname, pnumber);

            return(status.getStatusId());
        }
コード例 #5
0
        public static void otpGen(string username)
        {
            SecuOTPService service = new SecuOTPService("https://secuotp-test.co.th", "5L44G-7XR1G-V5RAM-JC6KG");

            service.generateOneTimePassword(username);
        }