mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +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 as Record<string, unknown>) }
|
||||
: {};
|
||||
delete existingLogin.decUsername;
|
||||
delete existingLogin.decPassword;
|
||||
delete existingLogin.decTotp;
|
||||
payload.login = {
|
||||
...existingLogin,
|
||||
username: await encryptTextValue(draft.loginUsername, keys.enc, keys.mac),
|
||||
|
||||
Reference in New Issue
Block a user