add sync form validate

This commit is contained in:
smanylov
2025-12-22 13:02:39 +07:00
parent 02ebf8aa07
commit e26a8c4742
4 changed files with 111 additions and 30 deletions
+1 -3
View File
@@ -133,7 +133,7 @@ export async function authorization(
redirect('/pages/dashboard');
}
type FormState = {
export type FormState = {
previousState: {
fullName: string;
email: string;
@@ -225,8 +225,6 @@ export async function registration(
await createSession(parsed.message_body.token, email);
} else {
console.log('error');
/* console.log(parsed.message_body); */
/* throw (`${parsed.message_code.fieldErrors}`); */
throw parsed;
}
} else {