From ead4b0bed8209502010ea7cdadc54d4d52855d54 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Mon, 8 Dec 2008 23:40:25 +0000 Subject: [PATCH] bugfix verify otp --- sign_demo.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sign_demo.php b/sign_demo.php index 11664dd..7c40ac6 100644 --- a/sign_demo.php +++ b/sign_demo.php @@ -6,7 +6,7 @@ require_once 'common.php'; $trace = true; $act = getHttpVal('act', ''); -$apiKey64 = getHttpVal('apikey', 'kNapft02c1a81N4MEMDcC/mgcGc='); +$apiKey64 = getHttpVal('apikey', 'R4LjRyWItBFmmEHOaA+hFn1/AJ4='); if ($act == 'sign_req') { if ($apiKey64 == '') { @@ -35,8 +35,8 @@ if ($act == 'sign_req') { $hmac = sign($a, $apiKey, true); -// echo 'Test submit the request >> '; + echo ''; } else if ($act == 'sign_resp') { if ($apiKey64 == '') { @@ -63,7 +63,7 @@ if ($act == 'sign_req') { echo '

Generate a request signature

'. '
' . '' . - 'api key: (use your api key issued to you by Yubico in b64 format): ' . + 'api key: (use your api key issued to you in b64 format): ' . '

' . 'id (your client id):

' . 'otp:

' .