mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-07 08:26:37 -05:00
feat: Add register + hcaptcha
This commit is contained in:
@@ -64,6 +64,15 @@ export const LoginSchema = z.object({
|
||||
});
|
||||
export type ApiAuthLoginRequest = z.infer<typeof LoginSchema>;
|
||||
|
||||
export const RegisterSchema = z.object({
|
||||
email: z.email(),
|
||||
username: z.string(),
|
||||
miiName: z.string(),
|
||||
password: z.string(),
|
||||
captchaResponse: z.string().optional()
|
||||
});
|
||||
export type ApiAuthRegisterRequest = z.infer<typeof RegisterSchema>;
|
||||
|
||||
export const AccountUpdateSchema = z.object({
|
||||
mii: z.object({
|
||||
name: z.string(),
|
||||
@@ -83,6 +92,7 @@ export type ApiAuthResetPasswordRequest = z.infer<typeof ResetPasswordSchema>;
|
||||
|
||||
export const ForgotPasswordSchema = z.object({
|
||||
emailOrPassword: z.string(),
|
||||
captchaResponse: z.string().optional()
|
||||
});
|
||||
export type ApiAuthForgotPasswordRequest = z.infer<typeof ForgotPasswordSchema>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user