correction page register et titre de l'onglet
This commit is contained in:
parent
a8cbd4efb7
commit
080a50e2fe
5 changed files with 4 additions and 16 deletions
|
|
@ -99,12 +99,6 @@ export class PopupUpdateAdminComponent implements OnInit
|
|||
}
|
||||
|
||||
|
||||
onEventInputInterests(myInterets: string[])
|
||||
{
|
||||
this.adminCopy.interests = myInterets;
|
||||
}
|
||||
|
||||
|
||||
// Fonction de hashage (faible)
|
||||
hashage(input: string): string
|
||||
{
|
||||
|
|
|
|||
|
|
@ -101,12 +101,6 @@ export class PopupUpdateAdvertiserComponent implements OnInit
|
|||
}
|
||||
|
||||
|
||||
onEventInputInterests(myInterets: string[])
|
||||
{
|
||||
this.advertiserCopy.interests = myInterets;
|
||||
}
|
||||
|
||||
|
||||
// Fonction de hashage (faible)
|
||||
hashage(input: string): string
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue