diff --git a/internal/site/src/components/login/auth-form.tsx b/internal/site/src/components/login/auth-form.tsx index c15ff61d..eab87576 100644 --- a/internal/site/src/components/login/auth-form.tsx +++ b/internal/site/src/components/login/auth-form.tsx @@ -17,7 +17,7 @@ import { toast } from "../ui/use-toast" import { OtpInputForm } from "./otp-forms" const honeypot = v.literal("") -const emailSchema = v.pipe(v.string(), v.email(t`Invalid email address.`)) +const emailSchema = v.pipe(v.string(), v.rfcEmail(t`Invalid email address.`)) const passwordSchema = v.pipe( v.string(), v.minLength(8, t`Password must be at least 8 characters.`), diff --git a/internal/site/src/components/routes/settings/notifications.tsx b/internal/site/src/components/routes/settings/notifications.tsx index 3650d24b..07af5c35 100644 --- a/internal/site/src/components/routes/settings/notifications.tsx +++ b/internal/site/src/components/routes/settings/notifications.tsx @@ -24,7 +24,7 @@ interface ShoutrrrUrlCardProps { } const NotificationSchema = v.object({ - emails: v.array(v.pipe(v.string(), v.email())), + emails: v.array(v.pipe(v.string(), v.rfcEmail())), webhooks: v.array(v.pipe(v.string(), v.url())), })