diff --git a/src/app/components/meteo/meteo.component.html b/src/app/components/meteo/meteo.component.html index d722216..a4a8996 100644 --- a/src/app/components/meteo/meteo.component.html +++ b/src/app/components/meteo/meteo.component.html @@ -1,7 +1,4 @@
- - - -
diff --git a/src/app/components/meteo/meteo.component.scss b/src/app/components/meteo/meteo.component.scss index e69de29..8b13789 100644 --- a/src/app/components/meteo/meteo.component.scss +++ b/src/app/components/meteo/meteo.component.scss @@ -0,0 +1 @@ + diff --git a/src/app/pages/page-account/page-account.component.html b/src/app/pages/page-account/page-account.component.html index 09a4426..6889b9e 100644 --- a/src/app/pages/page-account/page-account.component.html +++ b/src/app/pages/page-account/page-account.component.html @@ -1,5 +1,8 @@ +
+ +
- +
diff --git a/src/app/pages/page-forgot-password/page-forgot-password.component.ts b/src/app/pages/page-forgot-password/page-forgot-password.component.ts index 5d3140f..73d7b7b 100644 --- a/src/app/pages/page-forgot-password/page-forgot-password.component.ts +++ b/src/app/pages/page-forgot-password/page-forgot-password.component.ts @@ -14,25 +14,20 @@ import { styleUrls: ['./page-forgot-password.component.scss'] }) export class PageForgotPasswordComponent implements OnInit { -public errorForm: boolean; constructor(private authService: AuthService, private router: Router) { - this.errorForm = false; + } ngOnInit(): void {} - public onSubmit(submittedForm: any): void { + + public onSubmit(submittedForm: any): void { console.log(submittedForm.form.value); - const email = submittedForm.form.value['email']; - if (email !== '') { - this.authService.forgotPassword(email).subscribe((resp) => { - console.log('Component : PageForgotPassword ', resp); - this.router.navigate(['reinitialisation-password']); - }); - } else { - // afficher une erreur à l'utilisateur - this.errorForm = true; - } + + // const email = submittedForm.form.value['email']; + // console.log(email); + window.alert("Vous allez recevoir un email pour re-initialiser votre mot de passe !") + // this.router.navigate(['reinitialisation-password']); + + } } - -}