Skip to content

Commit 825de17

Browse files
committed
Adding autocomplete values to inputs
1 parent 41cede6 commit 825de17

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

resources/js/pages/auth/confirm-password.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default function ConfirmPassword() {
3636
type="password"
3737
name="password"
3838
placeholder="Password"
39+
autoComplete="current-password"
3940
value={data.password}
4041
autoFocus
4142
onChange={(e) => setData('password', e.target.value)}

resources/js/pages/auth/login.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default function Login({
6666
required
6767
autoFocus
6868
tabIndex={1}
69+
autoComplete="email"
6970
value={data.email}
7071
onChange={(e) => setData("email", e.target.value)}
7172
/>
@@ -90,6 +91,7 @@ export default function Login({
9091
type="password"
9192
required
9293
tabIndex={2}
94+
autoComplete="current-password"
9395
value={data.password}
9496
onChange={(e) => setData("password", e.target.value)}
9597
/>

resources/js/pages/auth/register.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function Register() {
5353
required
5454
autoFocus
5555
tabIndex={1}
56+
autoComplete="name"
5657
value={data.name}
5758
onChange={(e) => setData("name", e.target.value)}
5859
disabled={processing}
@@ -67,6 +68,7 @@ export default function Register() {
6768
type="email"
6869
required
6970
tabIndex={2}
71+
autoComplete="email"
7072
value={data.email}
7173
onChange={(e) => setData("email", e.target.value)}
7274
disabled={processing}
@@ -81,6 +83,7 @@ export default function Register() {
8183
type="password"
8284
required
8385
tabIndex={3}
86+
autoComplete="new-password"
8487
value={data.password}
8588
onChange={(e) => setData("password", e.target.value)}
8689
disabled={processing}
@@ -97,6 +100,7 @@ export default function Register() {
97100
type="password"
98101
required
99102
tabIndex={4}
103+
autoComplete="new-password"
100104
value={data.password_confirmation}
101105
onChange={(e) => setData("password_confirmation", e.target.value)}
102106
disabled={processing}

resources/js/pages/auth/reset-password.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export default function ResetPassword({ token, email }: ResetPasswordProps) {
5151
id="email"
5252
type="email"
5353
name="email"
54+
autoComplete="email"
5455
value={data.email}
5556
className="mt-1 block w-full"
56-
autoComplete="username"
5757
readOnly
5858
onChange={(e) => setData('email', e.target.value)}
5959
/>
@@ -66,9 +66,9 @@ export default function ResetPassword({ token, email }: ResetPasswordProps) {
6666
id="password"
6767
type="password"
6868
name="password"
69+
autoComplete="new-password"
6970
value={data.password}
7071
className="mt-1 block w-full"
71-
autoComplete="new-password"
7272
autoFocus
7373
onChange={(e) => setData('password', e.target.value)}
7474
/>
@@ -83,9 +83,9 @@ export default function ResetPassword({ token, email }: ResetPasswordProps) {
8383
id="password_confirmation"
8484
type="password"
8585
name="password_confirmation"
86+
autoComplete="new-password"
8687
value={data.password_confirmation}
8788
className="mt-1 block w-full"
88-
autoComplete="new-password"
8989
onChange={(e) => setData('password_confirmation', e.target.value)}
9090
/>
9191
<InputError message={errors.password_confirmation} className="mt-2" />

0 commit comments

Comments
 (0)