fix #1779: don't copy passwords from the inline genertor in fields

This commit is contained in:
antelle 2021-04-29 14:20:36 +02:00
parent 09fe1a4649
commit 6672b60d0f
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 5 additions and 3 deletions

View File

@ -175,10 +175,12 @@ class GeneratorView extends View {
}
btnOkClick() {
if (!CopyPaste.simpleCopy) {
CopyPaste.createHiddenInput(this.password);
if (this.model.copy) {
if (!CopyPaste.simpleCopy) {
CopyPaste.createHiddenInput(this.password);
}
CopyPaste.copy(this.password);
}
CopyPaste.copy(this.password);
this.emit('result', this.password);
this.remove();
}