mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
saveOrUpdateCredentials: If more than one matching fallback cipher is found, update atleast the first one of them, to ensure saving PW change
This commit is contained in:
@@ -267,7 +267,7 @@ export default class RuntimeBackground {
|
||||
const usernameMatches = ciphers.filter(c => c.login.username != null &&
|
||||
c.login.username.toLowerCase() === message.username);
|
||||
|
||||
if (usernameMatches.length === 1) {
|
||||
if (usernameMatches.length >= 1) {
|
||||
await this.updateCipher(usernameMatches[0], message.password);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user