mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-01 13:13:36 +01: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:
parent
83ef310400
commit
23517272fd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user