1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +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:
Daniel James Smith 2021-09-30 16:56:04 +02:00
parent 83ef310400
commit 23517272fd
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726

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