diff --git a/src/components/auth/LoginForm.tsx b/src/components/auth/LoginForm.tsx index d0bb04d..9c7f21a 100644 --- a/src/components/auth/LoginForm.tsx +++ b/src/components/auth/LoginForm.tsx @@ -15,6 +15,8 @@ import { loginUser } from "@/handlers/api/user.handler" import { useConfig } from "@/contexts/ConfigContext" import { IUser } from "@/types/user" import Head from "next/head" +import { Tooltip } from "../ui/tooltip" +import { set } from "date-fns" export const description = "A login form with email and password. There's an option to login with Google and a link to sign up if you don't have an account." @@ -40,6 +42,7 @@ export function LoginForm( const handleSubmit = (e: React.FormEvent) => { e.preventDefault() setLoading(true) + setErrorMessage(null) loginUser(formData.email, formData.password) .then(onLogin) .catch((error) => { @@ -71,6 +74,11 @@ export function LoginForm(
+ {errorMessage && ( +
+

{errorMessage}

+
+ )}
Or Use IMMICH_API_KEY in your environment to use API Key instead of password.

- {/* */} +