mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-13 15:35:17 +00:00
Merge pull request #4323 from Dokploy/fix/forgot-password-email-max-length
fix: enforce 255-char max length on forgot password email field
This commit is contained in:
@@ -30,6 +30,9 @@ const loginSchema = z.object({
|
|||||||
.min(1, {
|
.min(1, {
|
||||||
message: "Email is required",
|
message: "Email is required",
|
||||||
})
|
})
|
||||||
|
.max(255, {
|
||||||
|
message: "Email must be at most 255 characters",
|
||||||
|
})
|
||||||
.email({
|
.email({
|
||||||
message: "Email must be a valid email",
|
message: "Email must be a valid email",
|
||||||
}),
|
}),
|
||||||
@@ -118,7 +121,11 @@ export default function Home() {
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Email</FormLabel>
|
<FormLabel>Email</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder="Email" {...field} />
|
<Input
|
||||||
|
placeholder="Email"
|
||||||
|
maxLength={255}
|
||||||
|
{...field}
|
||||||
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user