From 7b011326a63aa22f2e9df465f9efcb52f4096b39 Mon Sep 17 00:00:00 2001 From: nessi Date: Thu, 12 Feb 2026 10:19:46 +0100 Subject: [PATCH] Improve login input fields for better UX Removed default email and password placeholders for security and replaced them with empty values. Added placeholders and proper `autoComplete` attributes to enhance user experience and browser compatibility. --- frontend/src/pages/LoginPage.jsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/LoginPage.jsx b/frontend/src/pages/LoginPage.jsx index 1679f70..82cd5a0 100644 --- a/frontend/src/pages/LoginPage.jsx +++ b/frontend/src/pages/LoginPage.jsx @@ -5,8 +5,8 @@ import { useAuth } from "../state"; export function LoginPage() { const { login } = useAuth(); const navigate = useNavigate(); - const [email, setEmail] = useState("admin@example.com"); - const [password, setPassword] = useState("ChangeMe123!"); + const [email, setEmail] = useState(""); + const [password, setPassword] = useState(""); const [error, setError] = useState(""); const [loading, setLoading] = useState(false); @@ -29,9 +29,21 @@ export function LoginPage() {

Login

- setEmail(e.target.value)} /> + setEmail(e.target.value)} + autoComplete="username" + /> - setPassword(e.target.value)} /> + setPassword(e.target.value)} + autoComplete="current-password" + /> {error &&

{error}

}