From a5b0d3352b2eebe0050c00e69a87a103836e12f8 Mon Sep 17 00:00:00 2001 From: Mike Johnston Date: Fri, 30 Jan 2026 21:53:30 -0500 Subject: [PATCH] add show/hide password functionality in Login and Register forms --- frontend/src/pages/Login.jsx | 36 +++++++++++++++++++++++++------ frontend/src/pages/Register.jsx | 38 ++++++++++++++++++++++++++------- 2 files changed, 59 insertions(+), 15 deletions(-) diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx index daa1b9c..9b50489 100644 --- a/frontend/src/pages/Login.jsx +++ b/frontend/src/pages/Login.jsx @@ -6,6 +6,7 @@ import { useAuth } from '../AuthContext'; export default function Login() { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); + const [showPassword, setShowPassword] = useState(false); const [loading, setLoading] = useState(false); const { login } = useAuth(); const navigate = useNavigate(); @@ -42,13 +43,34 @@ export default function Login() {
- setPassword(e.target.value)} - required - /> +
+ setPassword(e.target.value)} + required + style={{ paddingRight: '2.5rem' }} + /> + +
+