mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-08-04 22:40:11 +00:00
fix(auth): require complete password change key data
This commit is contained in:
@@ -631,8 +631,6 @@ export async function changeMasterPassword(
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
masterPasswordHash: current.hash,
|
||||
newMasterPasswordHash,
|
||||
key: newKey,
|
||||
authenticationData: {
|
||||
kdf: {
|
||||
kdfType: 0,
|
||||
@@ -653,8 +651,6 @@ export async function changeMasterPassword(
|
||||
masterKeyWrappedUserKey: newKey,
|
||||
salt: args.email.trim().toLowerCase(),
|
||||
},
|
||||
kdf: 0,
|
||||
kdfIterations: current.kdfIterations,
|
||||
}),
|
||||
});
|
||||
if (!resp.ok) throw new Error('Change master password failed');
|
||||
|
||||
Reference in New Issue
Block a user