Skip to content
Snippets Groups Projects
Unverified Commit f0ae1611 authored by ThomasBidot's avatar ThomasBidot Committed by GitHub
Browse files

Back to no email verification

parent c62aac1e
Branches
No related tags found
1 merge request!75Authorize valid profile
<app-form-page> <app-form-page>
<!-- <form [formGroup]="formGroup" (ngSubmit)="submit()"> --> <form [formGroup]="formGroup" (ngSubmit)="submit()">
<!-- <h1>Inscription</h1>
<p>
Bienvenue ! Procédons à ton inscription sur l'espace lycéens.
</p> -->
<!-- First name -->
<!-- <mat-form-field class="full-width">
<input matInput type="text" formControlName="firstName" placeholder="Prénom" required>
</mat-form-field> -->
<!-- Last name -->
<!-- <mat-form-field class="full-width">
<input matInput type="text" formControlName="lastName" placeholder="Nom" required>
</mat-form-field> -->
<!-- Email -->
<!-- <mat-form-field class="full-width">
<input matInput type="email" formControlName="email" placeholder="Adresse email" required>
<mat-hint>
Elle te servira d'identifiant de connexion.
</mat-hint>
</mat-form-field> -->
<!-- Confirm Email -->
<!-- <mat-form-field class="full-width">
<input matInput type="email" formControlName="emailConfirm" placeholder="Confirmer l'adresse email"
[errorStateMatcher]="emailMatcher">
<mat-error *ngIf="formGroup.hasError('emailsDifferent')">
Les adresses emails doivent être identiques.
</mat-error>
</mat-form-field>
<mat-form-field class="full-width">
<input matInput type="tel" formControlName="phoneNumber" placeholder="Numéro de téléphone" required>
<mat-hint>
Il nous permettra de te contacter en cas de nécessité.
</mat-hint>
</mat-form-field>
<p>
Il ne te reste plus qu'à choisir un mot de passe. :-)
</p> -->
<!-- Password -->
<!-- <mat-form-field class="full-width">
<input matInput type="password" formControlName="password" placeholder="Mot de passe" required>
</mat-form-field> -->
<!-- Confirm password -->
<!-- <mat-form-field class="full-width">
<input matInput type="password" formControlName="passwordConfirm" placeholder="Confirmer le mot de passe"
[errorStateMatcher]="passwordMatcher">
<mat-error *ngIf="formGroup.hasError('passwordsDifferent')">
Les mots de passe doivent être identiques.
</mat-error>
</mat-form-field>
<div class="text-center">
<button mat-raised-button color="primary" [disabled]="!formGroup.valid || loading">
M'inscrire
<app-load-spinner *ngIf="loading" [block]="false"></app-load-spinner>
</button>
</div>
<p class="text-center">{{error}}</p>
<p class="text-center">
J'ai déjà un compte ! <a routerLink="/connexion">Me connecter</a>
</p> -->
<!-- </form> -->
<form [formGroup]="formGroup" novalidate>
<h1>Inscription</h1> <h1>Inscription</h1>
...@@ -93,29 +19,13 @@ ...@@ -93,29 +19,13 @@
</mat-form-field> </mat-form-field>
<!-- Email --> <!-- Email -->
<div formGroupName="emailGroup">
<mat-form-field class="full-width"> <mat-form-field class="full-width">
<input matInput placeholder="Adresse email *" type="email" formControlName="email"> <input matInput type="email" formControlName="email" placeholder="Adresse email" required>
<mat-hint> <mat-hint>
Elle te servira d'identifiant de connexion. Elle te servira d'identifiant de connexion.
</mat-hint> </mat-hint>
<mat-error>
{{errors.email}}
</mat-error>
</mat-form-field> </mat-form-field>
<br />
<mat-form-field class="full-width">
<input matInput placeholder="Confirmer l'adresse email" type="email" formControlName="confirmEmail"
[errorStateMatcher]="confirmValidParentMatcher">
<mat-error>
{{errors.confirmEmail}}
</mat-error>
</mat-form-field>
</div>
<mat-form-field class="full-width"> <mat-form-field class="full-width">
<input matInput type="tel" formControlName="phoneNumber" placeholder="Numéro de téléphone" required> <input matInput type="tel" formControlName="phoneNumber" placeholder="Numéro de téléphone" required>
<mat-hint> <mat-hint>
...@@ -123,39 +33,36 @@ ...@@ -123,39 +33,36 @@
</mat-hint> </mat-hint>
</mat-form-field> </mat-form-field>
<p> <p>
Il ne te reste plus qu'à choisir un mot de passe. :-) Il ne te reste plus qu'à choisir un mot de passe. :-)
</p> </p>
<!-- Password --> <!-- Password -->
<div formGroupName="passwordGroup">
<mat-form-field class="full-width"> <mat-form-field class="full-width">
<input matInput placeholder="Mot de passe *" type="password" formControlName="password"> <input matInput type="password" formControlName="password" placeholder="Mot de passe" required>
<mat-error>
{{errors.password}}
</mat-error>
</mat-form-field> </mat-form-field>
<br /> <!-- Confirm password -->
<mat-form-field class="full-width"> <mat-form-field class="full-width">
<input matInput placeholder="Confirmer le mot de passe" type="password" formControlName="confirmPassword" <input matInput type="password" formControlName="passwordConfirm" placeholder="Confirmer le mot de passe"
[errorStateMatcher]="confirmValidParentMatcher"> [errorStateMatcher]="matcher">
<mat-error> <mat-error *ngIf="formGroup.hasError('passwordsDifferent')">
{{errors.confirmPassword}} Les mots de passe doivent être identiques.
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
</div>
<div class="text-center"> <div class="text-center">
<button mat-raised-button color="primary" [disabled]="!formGroup.valid || loading">M'inscrire <button mat-raised-button color="primary" [disabled]="!formGroup.valid || loading">
M'inscrire
<app-load-spinner *ngIf="loading" [block]="false"></app-load-spinner> <app-load-spinner *ngIf="loading" [block]="false"></app-load-spinner>
</button> </button>
</div> </div>
<p class="text-center">{{error}}</p>
<p class="text-center"> <p class="text-center">
J'ai déjà un compte ! <a routerLink="/connexion">Me connecter</a> J'ai déjà un compte ! <a routerLink="/connexion">Me connecter</a>
</p> </p>
</form> </form>
</app-form-page> </app-form-page>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment