From 8ef97f32fb147e27d6982634dfac1c09a49638c5 Mon Sep 17 00:00:00 2001 From: salazard <hamzatouizrat@yahoo.com> Date: Mon, 28 Nov 2022 17:01:34 +0100 Subject: [PATCH] add patern --- src/app/signup/student-signup/student-signup.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/signup/student-signup/student-signup.component.html b/src/app/signup/student-signup/student-signup.component.html index 86ce369..26e0b43 100644 --- a/src/app/signup/student-signup/student-signup.component.html +++ b/src/app/signup/student-signup/student-signup.component.html @@ -47,7 +47,7 @@ <!-- Password --> <mat-form-field class="full-width"> - <input matInput type="password" formControlName="password" placeholder="Mot de passe" required> + <input matInput type="password" minlength="8" minlength="8" formControlName="password" placeholder="Mot de passe" pattern="(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" required> </mat-form-field> <!-- Confirm password --> -- GitLab