recovery form, fix email service
This commit is contained in:
1 parent
16e8035299
commit
6a0f3426b3
5 files changed
+66
-7
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const recoverySchema = z.object({
|
||||
email: z
|
||||
.string()
|
||||
.min(1, "auth.common.inputs.email.errors.empty")
|
||||
.email("auth.common.inputs.email.errors.invalid")
|
||||
.transform((val) => val.toLowerCase().trim()),
|
||||
});
|
||||
|
||||
export type RecoveryFormData = z.infer<typeof recoverySchema>;
|
||||
Reference in new issue
Block a user