<inputmatInputtype="password"minlength="8"minlength="8"formControlName="password"placeholder="Mot de passe"pattern="(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$"required>
Il faut 8 caractères avec au moins : une majuscule, une minuscule, et un chiffre.
<mat-hint>
Il faut 8 caractères avec au moins : une majuscule, une minuscule, et un chiffre. </mat-hint>
</mat-form-field>
<!-- Confirm password -->
<mat-form-fieldclass="full-width">
<inputmatInputtype="password"formControlName="passwordConfirm"placeholder="Confirmer le mot de passe"