From b5fa1fe746a92573fbc447d15b486366f8a44579 Mon Sep 17 00:00:00 2001 From: Dianaka123 Date: Fri, 27 Feb 2026 14:05:03 +0300 Subject: [PATCH] POL-125: Add showPassword state to login form hook Co-Authored-By: Claude Opus 4.6 --- web/src/hooks/useAuthForms.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/hooks/useAuthForms.ts b/web/src/hooks/useAuthForms.ts index afc546b..8ee3644 100644 --- a/web/src/hooks/useAuthForms.ts +++ b/web/src/hooks/useAuthForms.ts @@ -11,6 +11,7 @@ export function useLoginForm() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); + const [showPassword, setShowPassword] = useState(false); const [error, setError] = useState(""); async function submit(e: React.SyntheticEvent) { @@ -24,7 +25,7 @@ export function useLoginForm() { } } - return { email, setEmail, password, setPassword, error, isLoading, submit }; + return { email, setEmail, password, setPassword, showPassword, setShowPassword, error, isLoading, submit }; } export function useRegisterForm() {