fix: strip plaintext login helpers from cipher payload

This commit is contained in:
shuaiplus
2026-05-23 01:49:34 +08:00
parent 04ebfc7021
commit 56185ecb69
+3
View File
@@ -841,6 +841,9 @@ async function buildCipherPayload(
cipher?.login && typeof cipher.login === 'object' cipher?.login && typeof cipher.login === 'object'
? { ...(cipher.login as Record<string, unknown>) } ? { ...(cipher.login as Record<string, unknown>) }
: {}; : {};
delete existingLogin.decUsername;
delete existingLogin.decPassword;
delete existingLogin.decTotp;
payload.login = { payload.login = {
...existingLogin, ...existingLogin,
username: await encryptTextValue(draft.loginUsername, keys.enc, keys.mac), username: await encryptTextValue(draft.loginUsername, keys.enc, keys.mac),