Password fields with an eye button to show or hide the password
CI / test (push) Successful in 3m22s
CI / build (push) Skipped
CI / deploy (push) Skipped

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 17:23:59 +00:00
co-authored by Claude Opus 5.5
parent 9eff714e6a
commit 178416e069
4 changed files with 48 additions and 6 deletions
@@ -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ó?
</button>
</div>
<input
<PasswordInput
id="pw-password"
className="inp"
type="password"
required
autoComplete="current-password"
value={password}