From 21db65cb3867f562d57d15dc5ed07aac93c77fd5 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Mon, 8 Dec 2008 23:42:05 +0000 Subject: [PATCH] bugfix verify otp --- common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 30782aa..6abaa2f 100644 --- a/common.php +++ b/common.php @@ -60,14 +60,14 @@ function sign($a, $apiKey, $debug=false) { } // Generate the signature - //debug('API key: '.$apiKey); // API key of the client +// debug('API key: '.base64_encode($apiKey)); // API key of the client debug('SIGN: '.$qs); // the TRUE at the end states we want the raw value, not hexadecimal form $hmac = hash_hmac('sha1', utf8_encode($qs), $apiKey, true); $hmac = base64_encode($hmac); if ($debug) { - debug('h='.$hmac); + debug('h='.$hmac); } return $hmac;