diff --git a/frontend/src/routes/(auth)/login/+page.svelte b/frontend/src/routes/(auth)/login/+page.svelte index 4590e44..d5384f9 100644 --- a/frontend/src/routes/(auth)/login/+page.svelte +++ b/frontend/src/routes/(auth)/login/+page.svelte @@ -5,6 +5,7 @@ import { Button } from '$lib/components/ui/button' import { goto } from '$app/navigation' import { Loader2 } from 'lucide-svelte' + import { toast } from 'svelte-sonner' export let data: PageData let isLoading = false @@ -18,6 +19,7 @@ const data = await response.json() isLoading = false if (data.success) { + toast.success('Successfully Logged In') goto('/') } } @@ -29,9 +31,9 @@ @@ -42,16 +44,16 @@

Login to your account

-

+

Enter your email below to login to your account

-

+

Don't Have An Account? Signup{' '} + class="hover:text-primary underline underline-offset-4"> Here

diff --git a/frontend/src/routes/api/login/+server.ts b/frontend/src/routes/api/login/+server.ts index 2975a2a..24942c4 100644 --- a/frontend/src/routes/api/login/+server.ts +++ b/frontend/src/routes/api/login/+server.ts @@ -41,6 +41,6 @@ export const POST: RequestHandler = async (event) => { }) return new Response(JSON.stringify({ success: true })) } else { - return new Response(JSON.stringify({ hello: 'hello' })) + return new Response(JSON.stringify({ success: false })) } }