mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix entering username manually
This commit is contained in:
parent
4082479fbc
commit
45a00b851d
1 changed files with 6 additions and 1 deletions
|
|
@ -158,7 +158,12 @@ cipAutocomplete.onBlur = function() {
|
|||
else {
|
||||
const fieldId = cipFields.prepareId(jQuery(this).attr('data-cip-id'));
|
||||
const fields = cipFields.getCombination('username', fieldId);
|
||||
if (_f(fields.password) && _f(fields.password).data('unchanged') !== true && jQuery(this).val() !== '' && _detectedFields > 1) {
|
||||
const fieldValue = jQuery(this).val();
|
||||
|
||||
// Check if the manually inserted value is one of the retrieved credentials
|
||||
let fieldFound = cipAutocomplete.elements.some(e => e.value === fieldValue);
|
||||
|
||||
if (_f(fields.password) && _f(fields.password).data('unchanged') !== true && fieldFound && _detectedFields > 1) {
|
||||
cip.fillInCredentials(fields, true, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue