1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-20 21:54:20 +01:00
This commit is contained in:
Olov Danielson 2010-01-12 17:14:58 +00:00
parent 0d105e5ecc
commit 38edb79866

View File

@ -128,11 +128,12 @@ class SyncLib
if (!$res) {
$this->log(LOG_NOTICE, 'Discovered new identity ' . $yk_publicname);
$this->db->save('yubikeys', array('yk_publicname'=>$yk_publicname,
'active'=>1,
'yk_counter'=>0,
'yk_use'=>0,
'nonce'=>0));
$this->db->save('yubikeys', array('yk_publicname'=>$yk_publicname,
'created'=>time(),
'active'=>1,
'yk_counter'=>0,
'yk_use'=>0,
'nonce'=>0));
$res=$this->db->findBy('yubikeys', 'yk_publicname', $yk_publicname,1);
}
if ($res) {