fix(admin): persist reset-password Turnstile verify setting (Fixes #10)
This commit is contained in:
parent
860200c059
commit
8831c9be9c
@ -37,7 +37,7 @@ const verifySchema = z.object({
|
|||||||
turnstile_secret: z.string().optional(),
|
turnstile_secret: z.string().optional(),
|
||||||
enable_register_verify: z.boolean().optional(),
|
enable_register_verify: z.boolean().optional(),
|
||||||
enable_login_verify: z.boolean().optional(),
|
enable_login_verify: z.boolean().optional(),
|
||||||
enable_password_verify: z.boolean().optional(),
|
enable_reset_password_verify: z.boolean().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
type VerifyFormData = z.infer<typeof verifySchema>;
|
type VerifyFormData = z.infer<typeof verifySchema>;
|
||||||
@ -63,7 +63,7 @@ export default function VerifyConfig() {
|
|||||||
turnstile_secret: "",
|
turnstile_secret: "",
|
||||||
enable_register_verify: false,
|
enable_register_verify: false,
|
||||||
enable_login_verify: false,
|
enable_login_verify: false,
|
||||||
enable_password_verify: false,
|
enable_reset_password_verify: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ export default function VerifyConfig() {
|
|||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="enable_password_verify"
|
name="enable_reset_password_verify"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>
|
<FormLabel>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user