mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix Google password input (#2861)
This commit is contained in:
parent
6414dd24b7
commit
89cc1bb40d
2 changed files with 10 additions and 0 deletions
|
|
@ -106,6 +106,8 @@ kpxcSites.exceptionFound = function(identifier, field) {
|
|||
} else if (document.location.origin === 'https://login.dei.gr' &&
|
||||
identifier?.value?.includes('show-reveal-password')) {
|
||||
return true;
|
||||
} else if (document.location.origin === 'https://accounts.google.com' && field?.id === 'password') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -108,6 +108,14 @@ kpxcFields.getExistingCombination = function(combination) {
|
|||
existingCombination.passwordInputs.push(combination.password);
|
||||
}
|
||||
|
||||
// Exception for Google. They replace the username input with password input using identical className.
|
||||
// If detected, remove the username from the combination.
|
||||
if (existingCombination?.username?.className?.length > 0
|
||||
&& existingCombination?.password?.className?.length > 0
|
||||
&& existingCombination?.username?.className === existingCombination?.password?.className) {
|
||||
existingCombination.username = null;
|
||||
}
|
||||
|
||||
return existingCombination;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue