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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user