Skip to content

Commit

Permalink
feat: add autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
psincraian committed Nov 18, 2024
1 parent 3704afc commit 5b71ed2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/user/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function LoginPage() {
disabled={isLoading}
onChange={(e) => setEmail(e.target.value)}
id="email"
autoComplete="email"
/>
</div>
<div className="space-y-2">
Expand All @@ -92,6 +93,7 @@ export default function LoginPage() {
disabled={isLoading}
onChange={(e) => setPassword(e.target.value)}
id="password"
autoComplete="current-password"
/>
</div>
<div className="flex items-center justify-between">
Expand Down
3 changes: 3 additions & 0 deletions app/user/signup/components/signup-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function SignupForm({ onSignupSuccess }: SignupFormProps) {
value={username}
onChange={(e) => setUsername(e.target.value)}
disabled={isLoading}
autoComplete="username"
required
/>
</div>
Expand All @@ -67,6 +68,7 @@ export function SignupForm({ onSignupSuccess }: SignupFormProps) {
value={email}
onChange={(e) => setEmail(e.target.value)}
disabled={isLoading}
autoComplete="email"
required
/>
</div>
Expand All @@ -77,6 +79,7 @@ export function SignupForm({ onSignupSuccess }: SignupFormProps) {
value={password}
onChange={(e) => setPassword(e.target.value)}
disabled={isLoading}
autoComplete="new-password"
required
/>
</div>
Expand Down

0 comments on commit 5b71ed2

Please sign in to comment.