correction page register et titre de l'onglet

This commit is contained in:
MiharyR 2021-11-16 09:56:56 +01:00
parent a8cbd4efb7
commit 080a50e2fe
5 changed files with 4 additions and 16 deletions

View file

@ -99,12 +99,6 @@ export class PopupUpdateAdminComponent implements OnInit
}
onEventInputInterests(myInterets: string[])
{
this.adminCopy.interests = myInterets;
}
// Fonction de hashage (faible)
hashage(input: string): string
{

View file

@ -101,12 +101,6 @@ export class PopupUpdateAdvertiserComponent implements OnInit
}
onEventInputInterests(myInterets: string[])
{
this.advertiserCopy.interests = myInterets;
}
// Fonction de hashage (faible)
hashage(input: string): string
{

View file

@ -105,7 +105,7 @@
<mat-label>Date de naissance</mat-label>
<input matInput type="date"
[ngModel] ="user.dateOfBirth | date:'yyyy-MM-dd'"
(ngModelChange)="user.dateOfBirth = $event">
(ngModelChange)="user.dateOfBirth = $event" required>
</mat-form-field>
<!-- interests -->

View file

@ -114,7 +114,7 @@ export class PageRegisterComponent
this.errorMessage = "Le mot de passe est différent de sa confirmation.";
this.hasError = true;
}
if((this.user.role.name === 'user') && ((this.user.dateOfBirth === undefined) || (this.user.dateOfBirth === null))) {
else if((this.user.role.name === 'user') && ((this.user.dateOfBirth === undefined) || (this.user.dateOfBirth === null))) {
this.errorMessage = "Veuillez remplir le champ 'date de naissance'.";
this.hasError = true;
}