From 603f098b1247b46dddacf4f1de728be9fec24995 Mon Sep 17 00:00:00 2001 From: Margarita Date: Wed, 26 Apr 2023 18:48:57 +0400 Subject: [PATCH] feat(in-267): password fix --- src/features/AuthServiceApp/components/ChangePassword/hooks.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/features/AuthServiceApp/components/ChangePassword/hooks.tsx b/src/features/AuthServiceApp/components/ChangePassword/hooks.tsx index 115877cd..8fa2f3f9 100644 --- a/src/features/AuthServiceApp/components/ChangePassword/hooks.tsx +++ b/src/features/AuthServiceApp/components/ChangePassword/hooks.tsx @@ -63,6 +63,7 @@ export const useChangePasswordForm = () => { } else { setError('error_passwords_missmatch') } + if (!checkPassword(password)) setError('check_password') } const isMatchPasswords = (pass1: string, pass2: string) => pass1 === pass2