Skip to content

Commit

Permalink
🔥 Remove unnecessary validation (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejsdev authored Mar 9, 2024
1 parent 6d1c47e commit d04f758
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frontend/src/components/UserSettings/ChangePassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ const ChangePassword: React.FC = () => {
</FormLabel>
<Input
id="current_password"
{...register('current_password', {
required: 'Password is required',
minLength: {
value: 8,
message: 'Password must be at least 8 characters',
},
})}
{...register('current_password')}
placeholder="Password"
type="password"
/>
Expand Down

0 comments on commit d04f758

Please sign in to comment.