Skip to content

Commit e283f02

Browse files
committed
feat(web): enable browser assisted autofill for username and password.
1 parent 31ef061 commit e283f02

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
- Enable browser assisted autofill for username and password.[#696](https://github.com/sourcebot-dev/sourcebot/pull/696)
12+
1013
## [4.10.5] - 2025-12-23
1114

1215
### Changed

packages/web/src/app/login/components/credentialsForm.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export const CredentialsForm = ({ callbackUrl, context }: CredentialsFormProps)
5555
<FormItem className="mb-4">
5656
<FormLabel>Email</FormLabel>
5757
<FormControl>
58-
<Input placeholder="[email protected]" {...field} />
58+
<Input
59+
placeholder="[email protected]"
60+
autoComplete="email"
61+
{...field}
62+
/>
5963
</FormControl>
6064
<FormMessage />
6165
</FormItem>
@@ -68,7 +72,11 @@ export const CredentialsForm = ({ callbackUrl, context }: CredentialsFormProps)
6872
<FormItem className="mb-8">
6973
<FormLabel>Password</FormLabel>
7074
<FormControl>
71-
<Input type="password" {...field} />
75+
<Input
76+
type="password"
77+
autoComplete={context === "signup" ? "new-password" : "current-password"}
78+
{...field}
79+
/>
7280
</FormControl>
7381
<FormMessage />
7482
</FormItem>

0 commit comments

Comments
 (0)