mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
when creatin yubikey entries all values better be filled in
This commit is contained in:
parent
38edb79866
commit
78de5a978e
@ -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,
|
||||
$this->db->save('yubikeys', array('active'=>1,
|
||||
'created'=>time(),
|
||||
'active'=>1,
|
||||
'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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user