Skip to content

Commit

Permalink
Use current password instead of new password for login page for autoC…
Browse files Browse the repository at this point in the history
…omplete (remix-run#31)
  • Loading branch information
moishinetzer authored Mar 25, 2022
1 parent f4cfbf1 commit f02b3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function LoginPage() {
ref={passwordRef}
name="password"
type="password"
autoComplete="new-password"
autoComplete="current-password"
aria-invalid={actionData?.errors?.password ? true : undefined}
aria-describedby="password-error"
className="w-full rounded border border-gray-500 px-2 py-1 text-lg"
Expand Down

0 comments on commit f02b3a6

Please sign in to comment.