Skip to content

Commit b227dc6

Browse files
MLaitarovskyclaude
andcommitted
fix: add autocomplete attributes to auth form inputs
Fixes browser warning "An element doesn't have an autocomplete attribute". - login: email → autocomplete="email", password → autocomplete="current-password" - register: name → autocomplete="name", email → autocomplete="email", team → autocomplete="organization", password → autocomplete="new-password" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff6034b commit b227dc6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

apps/web/src/app/(auth)/login/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default function LoginPage() {
6969
name="email"
7070
type="email"
7171
placeholder="you@company.com"
72+
autoComplete="email"
7273
required
7374
/>
7475
</div>
@@ -80,6 +81,7 @@ export default function LoginPage() {
8081
name="password"
8182
type="password"
8283
placeholder="********"
84+
autoComplete="current-password"
8385
required
8486
minLength={8}
8587
/>

apps/web/src/app/(auth)/register/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default function RegisterPage() {
7272
id="full_name"
7373
name="full_name"
7474
placeholder="Jane Doe"
75+
autoComplete="name"
7576
required
7677
/>
7778
</div>
@@ -83,6 +84,7 @@ export default function RegisterPage() {
8384
name="email"
8485
type="email"
8586
placeholder="you@company.com"
87+
autoComplete="email"
8688
required
8789
/>
8890
</div>
@@ -93,6 +95,7 @@ export default function RegisterPage() {
9395
id="team_name"
9496
name="team_name"
9597
placeholder="Acme Corp"
98+
autoComplete="organization"
9699
required
97100
/>
98101
</div>
@@ -104,6 +107,7 @@ export default function RegisterPage() {
104107
name="password"
105108
type="password"
106109
placeholder="Min 8 characters"
110+
autoComplete="new-password"
107111
required
108112
minLength={8}
109113
/>

0 commit comments

Comments
 (0)