copying otp from yubikeys

This commit is contained in:
antelle 2020-05-08 23:33:57 +02:00
parent 20e201795e
commit cf8aa6f9a4
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 9 additions and 1 deletions

View File

@ -486,7 +486,15 @@ class DetailsView extends View {
}
copyOtp() {
this.copyKeyPress(this.getFieldView('$otp'));
const otpFieldView = this.getFieldView('$otp');
if (this.model.external) {
if (!otpFieldView) {
return false;
}
otpFieldView.copyValue();
return true;
}
this.copyKeyPress(otpFieldView);
}
showCopyTip() {