From 178416e0698c7b05fe56bbcc41651fe97329daa5 Mon Sep 17 00:00:00 2001 From: feco Date: Thu, 26 Nov 2026 17:23:59 +0000 Subject: [PATCH] Password fields with an eye button to show or hide the password The login form and the new password page (both fields) use PasswordInput: an eye button shows what was typed and hides it again (the caret stays in the field; Edge's own reveal button is hidden so there are not two). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL --- .../src/app/belepes/PasswordLogin.tsx | 4 +-- services/frontend/src/app/globals.css | 11 +++++++ .../src/app/jelszo/SetPasswordForm.tsx | 7 ++-- .../frontend/src/components/PasswordInput.tsx | 32 +++++++++++++++++++ 4 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 services/frontend/src/components/PasswordInput.tsx diff --git a/services/frontend/src/app/belepes/PasswordLogin.tsx b/services/frontend/src/app/belepes/PasswordLogin.tsx index aaaf61b..630a405 100644 --- a/services/frontend/src/app/belepes/PasswordLogin.tsx +++ b/services/frontend/src/app/belepes/PasswordLogin.tsx @@ -3,6 +3,7 @@ import { useRouter } from "next/navigation"; import { useState } from "react"; +import { PasswordInput } from "@/components/PasswordInput"; import { Turnstile } from "@/components/Turnstile"; import { ApiError, api, errorText } from "@/lib/api"; @@ -151,10 +152,9 @@ export function PasswordLogin({ Elfelejtett jelszó? -
-
- , "type">) { + const [shown, setShown] = useState(false); + return ( + + + + + ); +}