feat: add password history feature with dialog and encryption handling

This commit is contained in:
shuaiplus
2026-04-18 02:05:01 +08:00
parent 7ebd12fa07
commit 38b33df719
6 changed files with 238 additions and 3 deletions
+8
View File
@@ -766,6 +766,14 @@ export default function App() {
),
};
}
if (Array.isArray(cipher.passwordHistory)) {
nextCipher.passwordHistory = await Promise.all(
cipher.passwordHistory.map(async (entry) => ({
...entry,
decPassword: await decryptField(entry?.password || '', itemEnc, itemMac),
}))
);
}
if (cipher.card) {
nextCipher.card = {
...cipher.card,