🔥 Remove unnecessary validation (#662)

This commit is contained in:
Alejandra
2024-03-10 00:53:03 +01:00
committed by GitHub
parent 6d1c47e67d
commit d04f758433

View File

@@ -66,13 +66,7 @@ const ChangePassword: React.FC = () => {
</FormLabel> </FormLabel>
<Input <Input
id="current_password" id="current_password"
{...register('current_password', { {...register('current_password')}
required: 'Password is required',
minLength: {
value: 8,
message: 'Password must be at least 8 characters',
},
})}
placeholder="Password" placeholder="Password"
type="password" type="password"
/> />