Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix: add support for password manager for login page

Tchoupinax2441470849ed
diff --git a/apps/web/components/TextInput.tsx b/apps/web/components/TextInput.tsx
index 1bddf84a..18c2f1dd 100644
--- a/apps/web/components/TextInput.tsx
+++ b/apps/web/components/TextInput.tsx
@@ -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}
/>
);
}
diff --git a/apps/web/pages/login.tsx b/apps/web/pages/login.tsx
index 8cbdbf13..c2be8674 100644
--- a/apps/web/pages/login.tsx
+++ b/apps/web/pages/login.tsx
@@ -163,6 +163,7 @@ export default function Login({
</p>
<TextInput
+ name="username"
autoFocus={true}
placeholder="johnny"
value={form.username}