Skip to content

Commit 4f713b7

Browse files
committed
fixes
1 parent e2a94cd commit 4f713b7

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

src/app/components/login-form/login-form.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export class LoginFormComponent {
3232
private toastr: ToastrService
3333
) {
3434
this.loginForm = this.fb.group({
35-
email: ['[email protected]', [Validators.required, Validators.email]],
36-
password: ['defaultPassword1234*', [Validators.required]],
35+
email: ['', [Validators.required, Validators.email]],
36+
password: ['', [Validators.required]],
3737
rememberMe: [false],
3838
});
3939
}

src/app/components/register-form/register-form.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ <h4>Informations d'adresse</h4>
238238
<h3>Inscription réussie</h3>
239239
<p>Merci pour votre inscription ! Votre inscription a été réussie.</p>
240240
</div> -->
241-
<div *ngIf="errorMessage" class="error-message">
241+
<!-- <div *ngIf="errorMessage" class="error-message">
242242
<h3>Erreur</h3>
243243
<p>{{ errorMessage }}</p>
244-
</div>
244+
</div> -->
245245
<div class="button-container">
246246
<button *ngIf="currentStep > 1 && currentStep < 4" type="button" (click)="previousStep()">Précédent</button>
247247
<button *ngIf="currentStep <= 3" type="submit">Valider</button>

src/app/components/register-form/register-form.component.ts

+16-14
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ export class RegisterFormComponent {
4444
this.registerForm = this.fb.group({
4545
account: this.fb.group(
4646
{
47-
email: ['[email protected]', [Validators.required, Validators.email]],
48-
password: ['defaultPassword1234*', [Validators.required, passwordValidator]],
49-
confirmPassword: ['defaultPassword1234*', [Validators.required]],
47+
email: ['', [Validators.required, Validators.email]],
48+
password: ['', [Validators.required, passwordValidator]],
49+
confirmPassword: ['', [Validators.required]],
5050
},
5151
{ validators: [confirmPasswordValidator] }
5252
),
5353
user: this.fb.group({
54-
firstName: ['John', Validators.required],
55-
lastName: ['Doe', Validators.required],
56-
phone: ['1234567890', Validators.required],
57-
birthDate: ['2000-01-01', Validators.required],
54+
firstName: ['', Validators.required],
55+
lastName: ['', Validators.required],
56+
phone: ['', Validators.required],
57+
birthDate: ['', Validators.required],
5858
gender: ['Homme' as Gender, Validators.required],
5959
}),
6060
address: this.fb.group({
61-
streetType: ['Rue' as StreetType, Validators.required],
62-
streetNumber: ['123', Validators.required],
63-
streetName: ['Main St', Validators.required],
64-
city: ['Paris', Validators.required],
65-
zipCode: ['75000', Validators.required],
66-
department: ['Ile-de-France', Validators.required],
67-
region: ['Ile-de-France', Validators.required],
61+
streetType: ['' as StreetType, Validators.required],
62+
streetNumber: ['', Validators.required],
63+
streetName: ['', Validators.required],
64+
city: ['', Validators.required],
65+
zipCode: ['', Validators.required],
66+
department: ['', Validators.required],
67+
region: ['', Validators.required],
6868
}),
6969
});
7070
}
@@ -112,6 +112,8 @@ export class RegisterFormComponent {
112112
},
113113
error: (err: ApiError) => {
114114
this.errorMessage = err.error.message;
115+
this.currentStep = 3;
116+
this.toastr.error(err.error.message);
115117
},
116118
});
117119
}

src/app/pages/asso-page/asso-page.component.scss

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ main {
5353
overflow: hidden;
5454
}
5555
main {
56-
padding: 0;
5756
height: 100%;
5857
overflow: hidden;
5958
.search {
@@ -73,4 +72,9 @@ main {
7372
}
7473
}
7574
}
75+
@media screen and (max-width: 400px) {
76+
main {
77+
padding: 0;
78+
}
79+
}
7680
}

0 commit comments

Comments
 (0)