fix: add support for password manager for login page

This commit is contained in:
Tchoupinax
2025-06-29 11:20:18 +02:00
parent 7cec177ef0
commit 2441470849
2 changed files with 4 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ type Props = {
className?: string;
spellCheck?: boolean;
"data-testid"?: string;
name: string;
};
const TextInput = forwardRef<HTMLInputElement, Props>(
@@ -28,6 +29,7 @@ const TextInput = forwardRef<HTMLInputElement, Props>(
className,
spellCheck,
"data-testid": dataTestId,
name,
},
ref
) => {
@@ -48,6 +50,7 @@ const TextInput = forwardRef<HTMLInputElement, Props>(
outline-none focus:border-primary duration-100
${className ?? ""}
`}
name={name}
/>
);
}

View File

@@ -163,6 +163,7 @@ export default function Login({
</p>
<TextInput
name="username"
autoFocus={true}
placeholder="johnny"
value={form.username}