Skip to content

Commit d04f758

Browse files
authored
🔥 Remove unnecessary validation (#662)
1 parent 6d1c47e commit d04f758

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

frontend/src/components/UserSettings/ChangePassword.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,7 @@ const ChangePassword: React.FC = () => {
6666
</FormLabel>
6767
<Input
6868
id="current_password"
69-
{...register('current_password', {
70-
required: 'Password is required',
71-
minLength: {
72-
value: 8,
73-
message: 'Password must be at least 8 characters',
74-
},
75-
})}
69+
{...register('current_password')}
7670
placeholder="Password"
7771
type="password"
7872
/>

0 commit comments

Comments
 (0)