mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
This commit is contained in:
parent
25f16f2993
commit
8070368e13
@ -50,7 +50,7 @@ function sign($a, $apiKey, $debug=false) {
|
||||
$n = count($a);
|
||||
$i = 0;
|
||||
foreach (array_keys($a) as $key) {
|
||||
$qs .= $key.'='.$a[$key];
|
||||
$qs .= trim($key).'='.trim($a[$key]);
|
||||
if (++$i < $n) {
|
||||
$qs .= '&';
|
||||
}
|
||||
@ -65,7 +65,6 @@ function sign($a, $apiKey, $debug=false) {
|
||||
$hmac = base64_encode($hmac);
|
||||
if ($debug) {
|
||||
debug('h='.$hmac);
|
||||
debug('<a href=verify_debug.php?'.$qs.'&h='.urlencode($hmac).'>Submit the request >> </a>');
|
||||
}
|
||||
return $hmac;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user