Skip to content

Instantly share code, notes, and snippets.

@benmmurphy
Last active March 8, 2016 13:56
Show Gist options
  • Save benmmurphy/e7c1689373cb0da5a0e5 to your computer and use it in GitHub Desktop.
Save benmmurphy/e7c1689373cb0da5a0e5 to your computer and use it in GitHub Desktop.
<?php
$details["attempts"] = $details["attempts"] + 1;
$_SESSION["msisdn_verification"] = $details;
if ($details["attempts"] >= MAX_VERIFY_ATTEMPTS) {
return "max_attempts";
} else {
return "invalid_token";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment