Skip to content

Instantly share code, notes, and snippets.

@jonmarkgo
Created July 9, 2013 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonmarkgo/5959990 to your computer and use it in GitHub Desktop.
Save jonmarkgo/5959990 to your computer and use it in GitHub Desktop.
function checkStatus() {
$.post("status.php", { phone_number : $("#phone_number").val() },
function(data) { updateStatus(data.status); }, "json");
}
function updateStatus(current) {
if (current === "unverified") {
$("#status").append(".");
setTimeout(checkStatus, 3000);
}
else {
success();
}
}
function success() {
$("#status").text("Verified!");
}
@kevinjam
Copy link

I have failed to set up a verification code usint twilio ..I need your help

@kevinjam
Copy link

I have failed to set up a verification code usint twilio ..I need your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment