diff --git a/src/routes/login/login-form.svelte b/src/routes/login/login-form.svelte
index 21afe12..64fd33b 100644
--- a/src/routes/login/login-form.svelte
+++ b/src/routes/login/login-form.svelte
@@ -14,19 +14,30 @@
import {Switch} from "@/components/ui/switch";
import {cn} from "@/utils.js";
import SuperDebug from 'sveltekit-superforms';
+ import { toast } from "svelte-sonner";
let {data}: { data: { form: SuperValidated
> } } =
$props();
const form = superForm(data.form, {
validators: zodClient(formSchema),
+ applyAction: false,
+ onResult({ result }) {
+ if (result.type === 'success') {
+ toast.success(`로그인: ${$formData.email}`, {
+ description: 'Monday, January 3rd at 6:00pm',
+ duration: 3000,
+ });
+ // goto(result.location);
+ }
+ }
});
const {form: formData, enhance} = form;
-
+
LOGIN
diff --git a/src/routes/register/+page.svelte b/src/routes/register/+page.svelte
index e87a321..88f19c7 100644
--- a/src/routes/register/+page.svelte
+++ b/src/routes/register/+page.svelte
@@ -3,7 +3,7 @@
import RegisterForm from "./register-form.svelte";
let { data }: { data: PageData } = $props();
-