diff --git a/client/public/opengraph.jpg b/client/public/opengraph.jpg index 814cfbb..334c186 100644 Binary files a/client/public/opengraph.jpg and b/client/public/opengraph.jpg differ diff --git a/client/src/pages/login.tsx b/client/src/pages/login.tsx index 0430672..f49d421 100644 --- a/client/src/pages/login.tsx +++ b/client/src/pages/login.tsx @@ -15,15 +15,17 @@ export default function Login() { const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); + if (isLoading) return; + setError(""); setIsLoading(true); try { await login(username, password); + await new Promise(resolve => setTimeout(resolve, 100)); setLocation("/admin"); } catch (err: any) { setError(err.message || "Login failed"); - } finally { setIsLoading(false); } };