Files
butcem/src/shared/schemas/auth.ts
T

11 lines
382 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { z } from "zod";
import { tr } from "../../i18n/tr";
/** Giriş formu: kullanıcı adı veya e-posta + şifre. Biçim kontrolü sunucuda yapılır. */
export const loginSchema = z.object({
identifier: z.string().trim().min(1, tr.auth.identifierRequired),
password: z.string().min(1, tr.auth.passwordRequired),
});
export type LoginInput = z.infer<typeof loginSchema>;