mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-02-01 20:08:21 +08:00
🔥 Remove unnecessary validation (#662)
This commit is contained in:
parent
6d1c47e67d
commit
d04f758433
@ -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"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user