1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-27 18:13:29 +00:00

fix(register): [PM-27085] Account Register Uses New Data Types - Removed unnecessary part of the payload.

This commit is contained in:
Patrick Pimentel
2026-01-22 16:19:53 -05:00
parent 8146473907
commit eadf3ded82
5 changed files with 5 additions and 7 deletions

View File

@@ -400,7 +400,6 @@ describe("WebRegistrationFinishService", () => {
expect.objectContaining({
email,
emailVerificationToken: emailVerificationToken,
masterPasswordHash: passwordInputResult.newServerMasterKeyHash,
masterPasswordHint: passwordInputResult.newPasswordHint,
userSymmetricKey: userKeyEncString.encryptedString,
userAsymmetricKeys: {
@@ -420,7 +419,8 @@ describe("WebRegistrationFinishService", () => {
).toBeDefined();
expect((registerCall as RegisterFinishV2Request).masterPasswordUnlock).toBeDefined();
// Verify old API fields are NOT present
// Verify old API fields are NOT present (including masterPasswordHash which is in masterPasswordAuthentication)
expect((registerCall as any).masterPasswordHash).toBeUndefined();
expect((registerCall as any).kdf).toBeUndefined();
expect((registerCall as any).kdfIterations).toBeUndefined();
});