1
0
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:
Daniel James Smith
2021-09-30 16:56:04 +02:00
parent 83ef310400
commit 23517272fd

View File

@@ -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;
}