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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user