add login, register layout

This commit is contained in:
smanylov
2025-11-27 13:48:24 +07:00
parent fecb811a5c
commit 5c6a235ece
9 changed files with 420 additions and 2 deletions
+28
View File
@@ -38,4 +38,32 @@ export async function testConnect() {
} catch (error) {
throw error;
}
}
export async function authenticate(
prevState: string | undefined,
formData: FormData,
) {
try {
console.log(formData);
} catch (error) {
if (error) {
return 'Something went wrong.';
}
throw error;
}
}
export async function registration(
prevState: string | undefined,
formData: FormData,
) {
try {
console.log(formData);
} catch (error) {
if (error) {
return 'Something went wrong.';
}
throw error;
}
}