mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
Don't refuse sync for disabled YubiKeys.
It is better to consume any OTPs produced by a YubiKey, so if - for some reason - another validation server has accepted an OTP we'd better bump our counter values accordingly.
This commit is contained in:
parent
2a7a6e3503
commit
a852e860db
@ -117,10 +117,12 @@ if (!$localParams) {
|
||||
}
|
||||
|
||||
if ($localParams['active'] != 1) {
|
||||
$myLog->log(LOG_NOTICE, 'De-activated Yubikey ' . $yk_publicname);
|
||||
sendResp(S_BAD_OTP, $apiKey);
|
||||
exit;
|
||||
}
|
||||
/* The remote server has accepted an OTP from a YubiKey which we would not. We update our
|
||||
* counters
|
||||
*/
|
||||
$myLog->log(LOG_WARNING, 'Received sync-request for de-activated Yubikey ' . $yk_publicname .
|
||||
' - check database synchronization!!!');
|
||||
}
|
||||
|
||||
|
||||
/* Conditional update local database */
|
||||
|
Loading…
x
Reference in New Issue
Block a user