Esempio n. 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());
        }
Esempio n. 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());
        }
Esempio n. 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());
        }
Esempio n. 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());
        }