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
1 changed files with 1 additions and 1 deletions

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