mirror of https://github.com/keeweb/keeweb.git
props
This commit is contained in:
parent
1c8f3932fb
commit
6e357e93ec
|
@ -1174,11 +1174,7 @@ class AppModel {
|
|||
}
|
||||
|
||||
openOtpDevice(callback) {
|
||||
const device = new YubiKeyOtpModel({
|
||||
id: 'yubikey',
|
||||
name: 'YubiKey 5',
|
||||
active: true
|
||||
});
|
||||
const device = new YubiKeyOtpModel();
|
||||
device.open(err => {
|
||||
if (!err) {
|
||||
this.addFile(device);
|
||||
|
|
|
@ -7,6 +7,8 @@ let ykmanStatus;
|
|||
class YubiKeyOtpModel extends ExternalOtpDeviceModel {
|
||||
constructor(props) {
|
||||
super({
|
||||
id: 'yubikey',
|
||||
name: 'YubiKey',
|
||||
shortName: 'YubiKey',
|
||||
...props
|
||||
});
|
||||
|
@ -45,6 +47,7 @@ class YubiKeyOtpModel extends ExternalOtpDeviceModel {
|
|||
})
|
||||
);
|
||||
}
|
||||
this.active = true;
|
||||
callback();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue