This commit is contained in:
antelle 2020-05-05 20:03:38 +02:00
parent 1c8f3932fb
commit 6e357e93ec
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
2 changed files with 4 additions and 5 deletions

View File

@ -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);

View File

@ -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();
}
});