From 20459365eeded94c82fffe856f5085fdadad5230 Mon Sep 17 00:00:00 2001 From: Blandine Bajard <83599148+BlandineBajard@users.noreply.github.com> Date: Fri, 21 Jan 2022 12:54:22 +0100 Subject: [PATCH] corrections --- src/app/models/membre.ts | 3 --- .../page-add-member.component.ts | 1 - .../pages/page-signup/page-signup.component.ts | 18 ++---------------- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/app/models/membre.ts b/src/app/models/membre.ts index e2da4de..acad742 100644 --- a/src/app/models/membre.ts +++ b/src/app/models/membre.ts @@ -4,9 +4,6 @@ export interface Membre { email: string; password: string; dateNaissance: Date; - profil: boolean; - roleList: string[]; - passwordConfirm: string; roleList: string[]; } diff --git a/src/app/pages/page-add-member/page-add-member.component.ts b/src/app/pages/page-add-member/page-add-member.component.ts index 426a262..e750e97 100644 --- a/src/app/pages/page-add-member/page-add-member.component.ts +++ b/src/app/pages/page-add-member/page-add-member.component.ts @@ -67,7 +67,6 @@ export class PageAddMemberComponent implements OnInit { email: emailValue, password: passwordValue, dateNaissance: dateNaissanceValue, - profil: profilValue, passwordConfirm: passwordConfirmValue, roleList: ["ROLE_PARENT"] }; diff --git a/src/app/pages/page-signup/page-signup.component.ts b/src/app/pages/page-signup/page-signup.component.ts index 4e80ea4..c31228f 100644 --- a/src/app/pages/page-signup/page-signup.component.ts +++ b/src/app/pages/page-signup/page-signup.component.ts @@ -25,7 +25,7 @@ export class PageSignupComponent implements OnInit { } ngOnInit(): void { - // *********************************penser a changer group car déprécié******************************** + // *********************************pensser a changer group car déprécié******************************** this.signupForm = this.fb.group( { firstNameFc: new FormControl('', [Validators.required]), @@ -61,30 +61,16 @@ export class PageSignupComponent implements OnInit { const passwordValue = this.signupForm.value['passwordFc']; const dateNaissanceValue = this.signupForm.value['dateNaissanceFc']; const passwordConfirmValue = this.signupForm.value['passwordConfirmFc']; - const roleValue = ['ROLE_PARENT']; const membre: Membre = { - prenom: prenomValue, nom: nomValue, + prenom: prenomValue, email: emailValue, password: passwordValue, dateNaissance: dateNaissanceValue, passwordConfirm: passwordConfirmValue, roleList: roleValue, - - const teamValue = ''; - - const membre: Membre = { - nom: firstNameValue, - prenom: lastNameValue, - email: emailValue, - password: passwordValue, - dateNaissance: dateNaissanceValue, - profil: profilValue, - passwordConfirm: passwordConfirmValue, - roleList: ["ROLE_PARENT"] - }; if (membre.email !== '' && membre.password !== '') {