Fix detecting new password input in form (#2878)

This commit is contained in:
Sami Vänttinen 2026-03-01 13:59:23 +02:00 committed by GitHub
parent a087c8dae0
commit b01af22fd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,8 +104,9 @@ kpxcFields.getExistingCombination = function(combination) {
existingCombination.password ??= combination.password;
if (existingCombination.passwordInputs?.length === 0) {
existingCombination.passwordInputs = combination.passwordInputs;
} else {
existingCombination.passwordInputs.push(combination.password);
} else if (combination?.password) {
// If password field is found in the current combination, force assign it to the existing combination
existingCombination.password = combination.password;
}
// Remove username field from combination with certain sites (replaced by password input)