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