Skip to content

Commit

Permalink
Remove password validation during login
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-stupakov committed Apr 25, 2024
1 parent 7a44fe2 commit c447760
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web-app/client/src/components/LogInModal/steps/LogIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -78,7 +77,6 @@ const LogIn: FC<Props> = ({ onSuccess, onRecovery }) => {
placeholder="admin1234"
{...register('password', {
required: 'Required',
validate: (value) => isStrongPassword(value) || 'Weak password',
})}
error={errors.password?.message}
/>
Expand Down

0 comments on commit c447760

Please sign in to comment.