fix: use decrypted password histories when duplicate handling

This commit is contained in:
Wankko Ree
2026-06-09 11:31:36 +08:00
committed by Shuai
parent b1b25fe678
commit b444c0f4b8
@@ -326,7 +326,7 @@ export function buildCipherDuplicateSignature(cipher: Cipher): string {
linkedId: field.linkedId ?? null, linkedId: field.linkedId ?? null,
})), })),
passwordHistory: (cipher.passwordHistory || []).map((entry) => ({ passwordHistory: (cipher.passwordHistory || []).map((entry) => ({
password: valueOrFallback(entry.password), password: valueOrFallback(entry.decPassword ?? entry.password),
lastUsedDate: valueOrFallback(entry.lastUsedDate), lastUsedDate: valueOrFallback(entry.lastUsedDate),
})), })),
}; };