1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-19 16:52:15 +01:00

change nonce to allow alphanumeric characters

This commit is contained in:
Olov Danielson 2009-12-15 11:32:28 +00:00
parent b8ee9550be
commit b6a44f4faa

View File

@ -197,7 +197,7 @@ class SyncLib
$resParams['yk_high']=$out[1];
preg_match("/^yk_low=([0-9]*)/m", $str, $out);
$resParams['yk_low']=$out[1];
preg_match("/^nonce=([[:alpha:]]*)/m", $str, $out);
preg_match("/^nonce=([[:alnum:]]*)/m", $str, $out);
$resParams['nonce']=$out[1];
return $resParams;
@ -384,7 +384,6 @@ class SyncLib
/*
Parse responses
*/
$lastLocalParams=$this->getLocalParams($this->otpParams['yk_identity']);
$localParams = $this->localParams;
$this->answers = count($ans_arr);