🐛 fix(user): Refactor user form validation and reset password fields

This commit is contained in:
web@ppanel
2025-01-29 17:16:25 +07:00
parent f60d40c06d
commit 6733fc211c
4 changed files with 60 additions and 98 deletions
+12 -12
View File
@@ -59,18 +59,6 @@ export default function ResetForm({
</FormItem>
)}
/>
<FormField
control={form.control}
name='password'
render={({ field }) => (
<FormItem>
<FormControl>
<Input placeholder='Enter your password...' type='password' {...field} />
</FormControl>
<FormMessage />
</FormItem>
)}
/>
{auth?.email?.email_enable_verify && (
<FormField
@@ -101,6 +89,18 @@ export default function ResetForm({
)}
/>
)}
<FormField
control={form.control}
name='password'
render={({ field }) => (
<FormItem>
<FormControl>
<Input placeholder='Enter your new password...' type='password' {...field} />
</FormControl>
<FormMessage />
</FormItem>
)}
/>
{verify.enable_reset_password_verify && (
<FormField
control={form.control}