Skip to content

Commit

Permalink
🔥 Remove unnecessary validation (fastapi#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejsdev committed Mar 9, 2024
1 parent b41b042 commit 66deac5
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 66deac5

Please sign in to comment.