diff --git a/src/angular/components/register.component.ts b/src/angular/components/register.component.ts index 29a9ee04ed..0ba73829d2 100644 --- a/src/angular/components/register.component.ts +++ b/src/angular/components/register.component.ts @@ -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; masterPasswordScore: number; - referenceData: ReferenceEventData; + referenceData: ReferenceEventRequest; protected successRoute = 'login'; private masterPasswordStrengthTimeout: any; diff --git a/src/models/domain/referenceEventData.ts b/src/models/request/referenceEventRequest.ts similarity index 60% rename from src/models/domain/referenceEventData.ts rename to src/models/request/referenceEventRequest.ts index 78ffcbfaf5..4cd8c507f6 100644 --- a/src/models/domain/referenceEventData.ts +++ b/src/models/request/referenceEventRequest.ts @@ -1,4 +1,4 @@ -export class ReferenceEventData { +export class ReferenceEventRequest { id: string; layout: string; flow: string; diff --git a/src/models/request/registerRequest.ts b/src/models/request/registerRequest.ts index ebe998435a..a93ac69bba 100644 --- a/src/models/request/registerRequest.ts +++ b/src/models/request/registerRequest.ts @@ -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;