Skip to content

Commit

Permalink
Merge branch 'main' into lmendoza/batch-of-work-jan-2025
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 authored Jan 27, 2025
2 parents 55a43ae + 261ce0c commit aa9d7cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/core/register2/register2.backend-validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ interface HasFormAdapters {
StepB: UntypedFormGroup,
StepC: UntypedFormGroup,
StepC2: UntypedFormGroup,
StepD: UntypedFormGroup
StepD: UntypedFormGroup,
isReactivation?: boolean
): RegisterForm
}

Expand Down Expand Up @@ -164,7 +165,7 @@ export function Register2BackendValidatorMixin<
StepC: UntypedFormGroup,
StepC2: UntypedFormGroup,
StepD: UntypedFormGroup,

isReactivation?: boolean,
type?: 'shibboleth'
): Observable<RegisterForm> {
const registerForm = this.formGroupToFullRegistrationForm(
Expand All @@ -174,6 +175,7 @@ export function Register2BackendValidatorMixin<
StepC2,
StepD
)
registerForm.isReactivation = isReactivation
return this._http
.post<RegisterForm>(`${environment.API_WEB}register.json`, registerForm)
.pipe(
Expand Down
3 changes: 2 additions & 1 deletion src/app/register2/pages/register/register2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ export class Register2Component implements OnInit, AfterViewInit {
this.FormGroupStepB,
this.FormGroupStepC,
this.FormGroupStepC2,
this.FormGroupStepD
this.FormGroupStepD,
this.reactivation?.isReactivation
)
.pipe(
switchMap((validator: RegisterForm) => {
Expand Down
1 change: 1 addition & 0 deletions src/app/types/register.endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface RegisterForm {
emailAccessAllowed?: boolean
redirectUrl?: any
resetParams?: string
isReactivation?: boolean
}

export interface DuplicatedName {
Expand Down

0 comments on commit aa9d7cd

Please sign in to comment.