fix: use decrypted password histories when duplicate handling

This commit is contained in:
Wankko Ree authored and Shuai committed 2026-06-12 17:21:23 +08:00
1 parent b1b25fe678
commit b444c0f4b8
1 file changed
+1 -1
@@ -326,7 +326,7 @@ export function buildCipherDuplicateSignature(cipher: Cipher): string {
linkedId: field.linkedId ?? null,
})),
passwordHistory: (cipher.passwordHistory || []).map((entry) => ({
password: valueOrFallback(entry.password),
password: valueOrFallback(entry.decPassword ?? entry.password),
lastUsedDate: valueOrFallback(entry.lastUsedDate),
})),
};