1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

reference event data model changes

This commit is contained in:
Chad Scharf 2020-07-20 15:21:01 -04:00
parent 9ca79c4929
commit 97d24f5abf
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
import { StateService } from '../../abstractions/state.service';
import { KdfType } from '../../enums/kdfType';
import { ReferenceEventData } from '../../models/domain/referenceEventData';
import { ReferenceEventRequest } from '../../models/request/referenceEventRequest';
export class RegisterComponent {
name: string = '';
@ -23,7 +23,7 @@ export class RegisterComponent {
showPassword: boolean = false;
formPromise: Promise<any>;
masterPasswordScore: number;
referenceData: ReferenceEventData;
referenceData: ReferenceEventRequest;
protected successRoute = 'login';
private masterPasswordStrengthTimeout: any;

View File

@ -1,4 +1,4 @@
export class ReferenceEventData {
export class ReferenceEventRequest {
id: string;
layout: string;
flow: string;

View File

@ -1,7 +1,7 @@
import { KeysRequest } from './keysRequest';
import { ReferenceEventRequest } from './referenceEventRequest';
import { KdfType } from '../../enums/kdfType';
import { ReferenceEventData } from '../domain/referenceEventData';
export class RegisterRequest {
name: string;
@ -14,10 +14,10 @@ export class RegisterRequest {
organizationUserId: string;
kdf: KdfType;
kdfIterations: number;
referenceData: ReferenceEventData;
referenceData: ReferenceEventRequest;
constructor(email: string, name: string, masterPasswordHash: string, masterPasswordHint: string, key: string,
kdf: KdfType, kdfIterations: number, referenceData: ReferenceEventData) {
kdf: KdfType, kdfIterations: number, referenceData: ReferenceEventRequest) {
this.name = name;
this.email = email;
this.masterPasswordHash = masterPasswordHash;