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

loosen the client checking, will make it optional

This commit is contained in:
Paul Chen 2008-09-24 01:52:08 +00:00
parent 796b83c972
commit e87bf491f7

View File

@ -45,11 +45,13 @@ if ($ad == null) {
//// Check the client ID //// Check the client ID
// //
if ($ad['client_id'] != $client) { // TODO - This may be too strict. Since our database doesn't keep track of that
debug('Client-'.$client.' is not the owner of the Yubikey! The key will be suspended with excessive failed attempts.');
sendResp(S_BAD_CLIENT, 'Not owner of the Yubikey'); //if ($ad['client_id'] != $client) {
exit; // debug('Client-'.$client.' is not the owner of the Yubikey! The key will be suspended with excessive failed attempts.');
} // sendResp(S_BAD_CLIENT, 'Not owner of the Yubikey');
// exit;
//}
$k = b64ToModhex($ad['secret']); $k = b64ToModhex($ad['secret']);
//debug('aes key in modhex = '.$k); //debug('aes key in modhex = '.$k);