From c4477607c45f6541509fcc382fcb6d0de2551c18 Mon Sep 17 00:00:00 2001 From: Kirill Stupakov Date: Thu, 25 Apr 2024 16:33:51 +0300 Subject: [PATCH] Remove password validation during login --- web-app/client/src/components/LogInModal/steps/LogIn.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/web-app/client/src/components/LogInModal/steps/LogIn.tsx b/web-app/client/src/components/LogInModal/steps/LogIn.tsx index d3e635ed2..3b28efb95 100644 --- a/web-app/client/src/components/LogInModal/steps/LogIn.tsx +++ b/web-app/client/src/components/LogInModal/steps/LogIn.tsx @@ -2,7 +2,6 @@ import { useMutation } from '@apollo/client'; import { FC } from 'react'; import { useForm } from 'react-hook-form'; import isEmail from 'validator/lib/isEmail'; -import isStrongPassword from 'validator/lib/isStrongPassword'; import Button from '@components/Button'; import { Text } from '@components/Inputs'; import { @@ -78,7 +77,6 @@ const LogIn: FC = ({ onSuccess, onRecovery }) => { placeholder="admin1234" {...register('password', { required: 'Required', - validate: (value) => isStrongPassword(value) || 'Weak password', })} error={errors.password?.message} />