mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-20 21:54:20 +01:00
.
This commit is contained in:
parent
0d105e5ecc
commit
38edb79866
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user