mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
change nonce to allow alphanumeric characters
This commit is contained in:
parent
b8ee9550be
commit
b6a44f4faa
@ -197,7 +197,7 @@ class SyncLib
|
|||||||
$resParams['yk_high']=$out[1];
|
$resParams['yk_high']=$out[1];
|
||||||
preg_match("/^yk_low=([0-9]*)/m", $str, $out);
|
preg_match("/^yk_low=([0-9]*)/m", $str, $out);
|
||||||
$resParams['yk_low']=$out[1];
|
$resParams['yk_low']=$out[1];
|
||||||
preg_match("/^nonce=([[:alpha:]]*)/m", $str, $out);
|
preg_match("/^nonce=([[:alnum:]]*)/m", $str, $out);
|
||||||
$resParams['nonce']=$out[1];
|
$resParams['nonce']=$out[1];
|
||||||
|
|
||||||
return $resParams;
|
return $resParams;
|
||||||
@ -384,7 +384,6 @@ class SyncLib
|
|||||||
/*
|
/*
|
||||||
Parse responses
|
Parse responses
|
||||||
*/
|
*/
|
||||||
$lastLocalParams=$this->getLocalParams($this->otpParams['yk_identity']);
|
|
||||||
$localParams = $this->localParams;
|
$localParams = $this->localParams;
|
||||||
|
|
||||||
$this->answers = count($ans_arr);
|
$this->answers = count($ans_arr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user