mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 13:00:39 +00:00
fix: strip plaintext login helpers from cipher payload
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user