Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('multiOTP/multiotp.class.php');
- $multiotp = new Multiotp('MyPersonalEncryptionKey');
- $multiotp->EnableVerboseLog();
- $multiotp->SetUser($_POST['username']);
- $result = $multiotp->CheckToken($_POST['token']);
- if (0 == $result)
- {
- echo "Authentication accepted.";
- }
- else
- {
- echo "Authentication rejected.";
- }
- echo $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement