Skip to content

Commit c00f326

Browse files
fix: use autocomplete for all fields to ensure password manager compatibility (#1239)
1 parent 1e5c123 commit c00f326

16 files changed

+16
-6
lines changed

resources/views/components/confirms-password.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{ $content }}
2525

2626
<div class="mt-4" x-data="{}" x-on:confirming-password.window="setTimeout(() => $refs.confirmable_password.focus(), 250)">
27-
<x-jet-input type="password" class="mt-1 block w-3/4" placeholder="{{ __('Password') }}"
27+
<x-jet-input type="password" class="mt-1 block w-3/4" placeholder="{{ __('Password') }}" autocomplete="current-password"
2828
x-ref="confirmable_password"
2929
wire:model.defer="confirmablePassword"
3030
wire:keydown.enter="confirmPassword" />

stubs/inertia/resources/js/Components/ConfirmsPassword.vue

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const closeModal = () => {
9191
type="password"
9292
class="mt-1 block w-3/4"
9393
placeholder="Password"
94+
autocomplete="current-password"
9495
@keyup.enter="confirmPassword"
9596
/>
9697

stubs/inertia/resources/js/Pages/Auth/ForgotPassword.vue

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const submit = () => {
4646
class="mt-1 block w-full"
4747
required
4848
autofocus
49+
autocomplete="username"
4950
/>
5051
<InputError class="mt-2" :message="form.errors.email" />
5152
</div>

stubs/inertia/resources/js/Pages/Auth/Login.vue

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const submit = () => {
5151
class="mt-1 block w-full"
5252
required
5353
autofocus
54+
autocomplete="username"
5455
/>
5556
<InputError class="mt-2" :message="form.errors.email" />
5657
</div>

stubs/inertia/resources/js/Pages/Auth/Register.vue

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const submit = () => {
5454
type="email"
5555
class="mt-1 block w-full"
5656
required
57+
autocomplete="username"
5758
/>
5859
<InputError class="mt-2" :message="form.errors.email" />
5960
</div>

stubs/inertia/resources/js/Pages/Auth/ResetPassword.vue

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const submit = () => {
4444
class="mt-1 block w-full"
4545
required
4646
autofocus
47+
autocomplete="username"
4748
/>
4849
<InputError class="mt-2" :message="form.errors.email" />
4950
</div>

stubs/inertia/resources/js/Pages/Profile/Partials/DeleteUserForm.vue

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const closeModal = () => {
7474
type="password"
7575
class="mt-1 block w-3/4"
7676
placeholder="Password"
77+
autocomplete="current-password"
7778
@keyup.enter="deleteUser"
7879
/>
7980

stubs/inertia/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const closeModal = () => {
113113
type="password"
114114
class="mt-1 block w-3/4"
115115
placeholder="Password"
116+
autocomplete="current-password"
116117
@keyup.enter="logoutOtherBrowserSessions"
117118
/>
118119

stubs/inertia/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ const clearPhotoFileInput = () => {
148148
v-model="form.email"
149149
type="email"
150150
class="mt-1 block w-full"
151+
autocomplete="username"
151152
/>
152153
<InputError :message="form.errors.email" class="mt-2" />
153154

stubs/livewire/resources/views/auth/forgot-password.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<div class="block">
2323
<x-jet-label for="email" value="{{ __('Email') }}" />
24-
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus />
24+
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
2525
</div>
2626

2727
<div class="flex items-center justify-end mt-4">

stubs/livewire/resources/views/auth/login.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<div>
1919
<x-jet-label for="email" value="{{ __('Email') }}" />
20-
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus />
20+
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
2121
</div>
2222

2323
<div class="mt-4">

stubs/livewire/resources/views/auth/register.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<div class="mt-4">
1818
<x-jet-label for="email" value="{{ __('Email') }}" />
19-
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required />
19+
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="username" />
2020
</div>
2121

2222
<div class="mt-4">

stubs/livewire/resources/views/auth/reset-password.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<div class="block">
1515
<x-jet-label for="email" value="{{ __('Email') }}" />
16-
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus />
16+
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus autocomplete="username" />
1717
</div>
1818

1919
<div class="mt-4">

stubs/livewire/resources/views/profile/delete-user-form.blade.php

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
<div class="mt-4" x-data="{}" x-on:confirming-delete-user.window="setTimeout(() => $refs.password.focus(), 250)">
3131
<x-jet-input type="password" class="mt-1 block w-3/4"
32+
autocomplete="current-password"
3233
placeholder="{{ __('Password') }}"
3334
x-ref="password"
3435
wire:model.defer="password"

stubs/livewire/resources/views/profile/logout-other-browser-sessions-form.blade.php

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272

7373
<div class="mt-4" x-data="{}" x-on:confirming-logout-other-browser-sessions.window="setTimeout(() => $refs.password.focus(), 250)">
7474
<x-jet-input type="password" class="mt-1 block w-3/4"
75+
autocomplete="current-password"
7576
placeholder="{{ __('Password') }}"
7677
x-ref="password"
7778
wire:model.defer="password"

stubs/livewire/resources/views/profile/update-profile-information-form.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<!-- Email -->
6363
<div class="col-span-6 sm:col-span-4">
6464
<x-jet-label for="email" value="{{ __('Email') }}" />
65-
<x-jet-input id="email" type="email" class="mt-1 block w-full" wire:model.defer="state.email" />
65+
<x-jet-input id="email" type="email" class="mt-1 block w-full" wire:model.defer="state.email" autocomplete="username" />
6666
<x-jet-input-error for="email" class="mt-2" />
6767

6868
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification()) && ! $this->user->hasVerifiedEmail())

0 commit comments

Comments
 (0)