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;
}

View file

@ -2,10 +2,10 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Frontend</title>
<title>StreamNotFound</title>
<base href="/">
<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 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">