1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

Add referenceId to register component

This commit is contained in:
Chad Scharf
2020-06-25 15:44:19 -04:00
parent 7f6d7424e7
commit c3389afd4f
2 changed files with 5 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ export class RegisterComponent {
showPassword: boolean = false;
formPromise: Promise<any>;
masterPasswordScore: number;
referenceId: string;
protected successRoute = 'login';
private masterPasswordStrengthTimeout: any;
@@ -110,7 +111,7 @@ export class RegisterComponent {
const hashedPassword = await this.cryptoService.hashPassword(this.masterPassword, key);
const keys = await this.cryptoService.makeKeyPair(encKey[0]);
const request = new RegisterRequest(this.email, this.name, hashedPassword,
this.hint, encKey[1].encryptedString, kdf, kdfIterations);
this.hint, encKey[1].encryptedString, kdf, kdfIterations, this.referenceId);
request.keys = new KeysRequest(keys[0], keys[1].encryptedString);
const orgInvite = await this.stateService.get<any>('orgInvitation');
if (orgInvite != null && orgInvite.token != null && orgInvite.organizationUserId != null) {