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

when creatin yubikey entries all values better be filled in

This commit is contained in:
Olov Danielson 2010-01-12 17:37:00 +00:00
parent 38edb79866
commit 78de5a978e

View File

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