mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-03-03 03:47:02 +00:00
fix: add support for password manager for login page
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -163,6 +163,7 @@ export default function Login({
|
||||
</p>
|
||||
|
||||
<TextInput
|
||||
name="username"
|
||||
autoFocus={true}
|
||||
placeholder="johnny"
|
||||
value={form.username}
|
||||
|
||||
Reference in New Issue
Block a user