diff --git a/src/app/signup/core/registration.model.ts b/src/app/signup/core/registration.model.ts index 9cb492bac8b5481e9f7f2fbb741cc93e3dcbf37d..68bad52de06ca9ecd879695029be8b8dd8f5095d 100644 --- a/src/app/signup/core/registration.model.ts +++ b/src/app/signup/core/registration.model.ts @@ -6,6 +6,7 @@ class RegistrationSchema { firstName: string; lastName: string; dateOfBirth : Date; + phoneNumber : string; } export class Registration extends RegistrationSchema { @@ -29,6 +30,7 @@ export class RegistrationAdapter { first_name: obj.firstName, last_name: obj.lastName, dateOfBirth : obj.dateOfBirth, + phoneNumber : obj.phoneNumber, } } } diff --git a/src/app/signup/student-signup/student-signup.component.ts b/src/app/signup/student-signup/student-signup.component.ts index 92c556fc30eda599fab6ca9fc3d5884ce5e86936..319ea5b2173c337e30e0c959f00468691977e26c 100644 --- a/src/app/signup/student-signup/student-signup.component.ts +++ b/src/app/signup/student-signup/student-signup.component.ts @@ -112,9 +112,9 @@ export class StudentSignupComponent implements OnInit { submit() { this.loading = true; - const {email,firstName,lastName,dateOfBirth} = this.formGroup.value + const {email,firstName,lastName,dateOfBirth,phoneNumber} = this.formGroup.value //const {gender,adressNumber,street,zipCode,city,personnalPhone,parentsPhone,parentsEmail,school,grade,section,specialTeaching,scholarship,fatherActivity,motherActivity,parentsStatus,dependantsNumber} = this.formGroup.value; - const registration: Registration = {email,firstName,lastName,dateOfBirth}; + const registration: Registration = {email,firstName,lastName,dateOfBirth,phoneNumber}; // const personnalData: PersonnalData = {gender,adressNumber,street,zipCode,city,personnalPhone,parentsPhone,parentsEmail,school,grade,section,specialTeaching,scholarship,fatherActivity,motherActivity,parentsStatus,dependantsNumber}; const password: string = this.formGroup.controls.password.value;