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)
|
// Fonction de hashage (faible)
|
||||||
hashage(input: string): string
|
hashage(input: string): string
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -101,12 +101,6 @@ export class PopupUpdateAdvertiserComponent implements OnInit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onEventInputInterests(myInterets: string[])
|
|
||||||
{
|
|
||||||
this.advertiserCopy.interests = myInterets;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Fonction de hashage (faible)
|
// Fonction de hashage (faible)
|
||||||
hashage(input: string): string
|
hashage(input: string): string
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
<mat-label>Date de naissance</mat-label>
|
<mat-label>Date de naissance</mat-label>
|
||||||
<input matInput type="date"
|
<input matInput type="date"
|
||||||
[ngModel] ="user.dateOfBirth | date:'yyyy-MM-dd'"
|
[ngModel] ="user.dateOfBirth | date:'yyyy-MM-dd'"
|
||||||
(ngModelChange)="user.dateOfBirth = $event">
|
(ngModelChange)="user.dateOfBirth = $event" required>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- interests -->
|
<!-- interests -->
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ export class PageRegisterComponent
|
||||||
this.errorMessage = "Le mot de passe est différent de sa confirmation.";
|
this.errorMessage = "Le mot de passe est différent de sa confirmation.";
|
||||||
this.hasError = true;
|
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.errorMessage = "Veuillez remplir le champ 'date de naissance'.";
|
||||||
this.hasError = true;
|
this.hasError = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Frontend</title>
|
<title>StreamNotFound</title>
|
||||||
<base href="/">
|
<base href="/">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="assets/logo.png">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
|
|
|
||||||
Reference in a new issue