From 17b885a063cf3e2db88142498d662bc0f8ce7b18 Mon Sep 17 00:00:00 2001 From: Pierre Ecarlat <pecarlat@grandlyon.com> Date: Mon, 11 Dec 2023 15:18:13 +0000 Subject: [PATCH] fix(ui) - Do not accept passwords with less than 8 characters --- src/app/profile/edit/edit.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/profile/edit/edit.component.ts b/src/app/profile/edit/edit.component.ts index a2bbfb820..b59076218 100644 --- a/src/app/profile/edit/edit.component.ts +++ b/src/app/profile/edit/edit.component.ts @@ -131,7 +131,8 @@ export class EditComponent implements OnInit { password.match(CustomRegExp.SPECHAR) && password.match(CustomRegExp.DIGIT) && password.match(CustomRegExp.UPPERCASE) && - password.match(CustomRegExp.LOWERCASE) + password.match(CustomRegExp.LOWERCASE) && + password.match(CustomRegExp.MINLENGTH) ); } public passwordValidConfirm(passwordConfirm: string, password: string): boolean { -- GitLab