mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix filling TOTP to fields not in combinations
This commit is contained in:
parent
6ab3299faf
commit
bfb309963a
1 changed files with 7 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ TOTPAutocomplete.prototype.itemClick = async function(e, input, uuid) {
|
|||
}
|
||||
|
||||
const index = Array.prototype.indexOf.call(e.currentTarget.parentElement.childNodes, e.currentTarget);
|
||||
this.fillTotp(index, uuid);
|
||||
await this.fillTotp(index, uuid, input);
|
||||
|
||||
this.closeList();
|
||||
input.focus();
|
||||
|
|
@ -26,11 +26,14 @@ TOTPAutocomplete.prototype.itemEnter = async function(index, elements) {
|
|||
this.fillTotp(index, elements[index].uuid);
|
||||
};
|
||||
|
||||
TOTPAutocomplete.prototype.fillTotp = async function(index, uuid) {
|
||||
TOTPAutocomplete.prototype.fillTotp = async function(index, uuid, currentInput) {
|
||||
const combination = await kpxcFields.getCombination(this.input, 'totp')
|
||||
|| await kpxcFields.getCombination(this.input, 'totpInputs');
|
||||
combination.loginId = index;
|
||||
kpxcFill.fillTOTPFromUuid(this.input, uuid);
|
||||
if (combination) {
|
||||
combination.loginId = index;
|
||||
}
|
||||
|
||||
kpxcFill.fillTOTPFromUuid(this.input || currentInput, uuid);
|
||||
};
|
||||
|
||||
const kpxcTOTPAutocomplete = new TOTPAutocomplete();
|
||||
|
|
|
|||
Loading…
Reference in a new issue