From 23517272fdbcfd10b6e9db1597004e67813ea986 Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Thu, 30 Sep 2021 16:56:04 +0200 Subject: [PATCH] saveOrUpdateCredentials: If more than one matching fallback cipher is found, update atleast the first one of them, to ensure saving PW change --- src/background/runtime.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index 2bf14393b0..2e3ea993c9 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -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; }