mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
Permit somewhat longer nonces (think SHA1 hex).
This commit is contained in:
parent
4ac054f9cd
commit
522c301dae
@ -86,7 +86,7 @@ if ($nonce && preg_match("/^[A-Za-z0-9]+$/", $nonce)==0) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen($nonce) < 16 || strlen($nonce) > 32) {
|
if (strlen($nonce) < 16 || strlen($nonce) > 40) {
|
||||||
$myLog->log(LOG_NOTICE, 'Nonce too short or too long');
|
$myLog->log(LOG_NOTICE, 'Nonce too short or too long');
|
||||||
sendResp(S_MISSING_PARAMETER, $apiKey, $extra);
|
sendResp(S_MISSING_PARAMETER, $apiKey, $extra);
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user