mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-03-03 18:29: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) {
|
if (!$res) {
|
||||||
$this->log(LOG_NOTICE, 'Discovered new identity ' . $yk_publicname);
|
$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(),
|
'created'=>time(),
|
||||||
'active'=>1,
|
'modified'=>0,
|
||||||
|
'yk_publicname'=>$yk_publicname,
|
||||||
|
'yk_internalname'=>'not set',
|
||||||
'yk_counter'=>0,
|
'yk_counter'=>0,
|
||||||
'yk_use'=>0,
|
'yk_use'=>0,
|
||||||
'nonce'=>0));
|
'yk_low'=>0,
|
||||||
|
'yk_high'=>0,
|
||||||
|
'nonce'=>'',
|
||||||
|
'notes'=>''));
|
||||||
$res=$this->db->findBy('yubikeys', 'yk_publicname', $yk_publicname,1);
|
$res=$this->db->findBy('yubikeys', 'yk_publicname', $yk_publicname,1);
|
||||||
}
|
}
|
||||||
if ($res) {
|
if ($res) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user