Skip to content

Commit ce5cdf6

Browse files
Bradeztaylorotwellinnocenzi
authoredSep 2, 2020
Include autocomplete on all relevant elements. (#13)
* Include autocomplete on all relevant elements. * Update stubs/livewire/resources/views/profile/update-profile-information-form.blade.php Co-authored-by: Enzo Innocenzi <[email protected]> * Update stubs/resources/views/auth/register.blade.php Co-authored-by: Enzo Innocenzi <[email protected]> * Update UpdateProfileInformationForm.vue Co-authored-by: Taylor Otwell <[email protected]> Co-authored-by: Enzo Innocenzi <[email protected]>
1 parent fb9d6e2 commit ce5cdf6

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed
 

‎stubs/inertia/resources/js/Pages/Profile/UpdatePasswordForm.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
<template #form>
1212
<div class="col-span-6 sm:col-span-4">
1313
<jet-label for="current_password" value="Current Password" />
14-
<jet-input id="current_password" type="password" class="mt-1 block w-full" v-model="form.current_password" ref="current_password" />
14+
<jet-input id="current_password" type="password" class="mt-1 block w-full" v-model="form.current_password" ref="current_password" autocomplete="current-password" />
1515
<jet-input-error :message="form.error('current_password')" class="mt-2" />
1616
</div>
1717

1818
<div class="col-span-6 sm:col-span-4">
1919
<jet-label for="password" value="New Password" />
20-
<jet-input id="password" type="password" class="mt-1 block w-full" v-model="form.password" />
20+
<jet-input id="password" type="password" class="mt-1 block w-full" v-model="form.password" autocomplete="new-password" />
2121
<jet-input-error :message="form.error('password')" class="mt-2" />
2222
</div>
2323

2424
<div class="col-span-6 sm:col-span-4">
2525
<jet-label for="password_confirmation" value="Confirm Password" />
26-
<jet-input id="password_confirmation" type="password" class="mt-1 block w-full" v-model="form.password_confirmation" />
26+
<jet-input id="password_confirmation" type="password" class="mt-1 block w-full" v-model="form.password_confirmation" autocomplete="new-password" />
2727
<jet-input-error :message="form.error('password_confirmation')" class="mt-2" />
2828
</div>
2929
</template>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<!-- Name -->
4141
<div class="col-span-6 sm:col-span-4">
4242
<jet-label for="name" value="Name" />
43-
<jet-input id="name" type="text" class="mt-1 block w-full" v-model="form.name" />
43+
<jet-input id="name" type="text" class="mt-1 block w-full" v-model="form.name" autocomplete="name" />
4444
<jet-input-error :message="form.error('name')" class="mt-2" />
4545
</div>
4646

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
<x-slot name="form">
1111
<div class="col-span-6 sm:col-span-4">
1212
<x-jet-label for="current_password" value="Current Password" />
13-
<x-jet-input id="current_password" type="password" class="mt-1 block w-full" wire:model="state.current_password" />
13+
<x-jet-input id="current_password" type="password" class="mt-1 block w-full" wire:model="state.current_password" autocomplete="current-password" />
1414
<x-jet-input-error for="current_password" class="mt-2" />
1515
</div>
1616

1717
<div class="col-span-6 sm:col-span-4">
1818
<x-jet-label for="password" value="New Password" />
19-
<x-jet-input id="password" type="password" class="mt-1 block w-full" wire:model="state.password" />
19+
<x-jet-input id="password" type="password" class="mt-1 block w-full" wire:model="state.password" autocomplete="new-password" />
2020
<x-jet-input-error for="password" class="mt-2" />
2121
</div>
2222

2323
<div class="col-span-6 sm:col-span-4">
2424
<x-jet-label for="password_confirmation" value="Confirm Password" />
25-
<x-jet-input id="password_confirmation" type="password" class="mt-1 block w-full" wire:model="state.password_confirmation" />
25+
<x-jet-input id="password_confirmation" type="password" class="mt-1 block w-full" wire:model="state.password_confirmation" autocomplete="new-password" />
2626
<x-jet-input-error for="password_confirmation" class="mt-2" />
2727
</div>
2828
</x-slot>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<!-- Name -->
5050
<div class="col-span-6 sm:col-span-4">
5151
<x-jet-label for="name" value="Name" />
52-
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model="state.name" />
52+
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model="state.name" autocomplete="name" />
5353
<x-jet-input-error for="name" class="mt-2" />
5454
</div>
5555

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<div class="mt-4">
2424
<x-jet-label value="Password" />
25-
<x-jet-input class="block mt-1 w-full" type="password" name="password" required />
25+
<x-jet-input class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" />
2626
</div>
2727

2828
<div class="block mt-4">

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div>
1313
<x-jet-label value="Name" />
14-
<x-jet-input class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus />
14+
<x-jet-input class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
1515
</div>
1616

1717
<div class="mt-4">
@@ -21,12 +21,12 @@
2121

2222
<div class="mt-4">
2323
<x-jet-label value="Password" />
24-
<x-jet-input class="block mt-1 w-full" type="password" name="password" required />
24+
<x-jet-input class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
2525
</div>
2626

2727
<div class="mt-4">
2828
<x-jet-label value="Confirm Password" />
29-
<x-jet-input class="block mt-1 w-full" type="password" name="password_confirmation" required />
29+
<x-jet-input class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
3030
</div>
3131

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

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
<div class="mt-4">
2020
<x-jet-label value="Password" />
21-
<x-jet-input class="block mt-1 w-full" type="password" name="password" required />
21+
<x-jet-input class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
2222
</div>
2323

2424
<div class="mt-4">
2525
<x-jet-label value="Confirm Password" />
26-
<x-jet-input class="block mt-1 w-full" type="password" name="password_confirmation" required />
26+
<x-jet-input class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
2727
</div>
2828

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

‎stubs/resources/views/auth/two-factor-challenge.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121
<div class="mt-4" x-show="! recovery">
2222
<x-jet-label value="Code" />
23-
<x-jet-input class="block mt-1 w-full" type="text" name="code" autofocus x-ref="code" />
23+
<x-jet-input class="block mt-1 w-full" type="text" name="code" autofocus x-ref="code" autocomplete="one-time-code" />
2424
</div>
2525

2626
<div class="mt-4" x-show="recovery">
2727
<x-jet-label value="Recovery Code" />
28-
<x-jet-input class="block mt-1 w-full" type="text" name="recovery_code" x-ref="recovery_code" />
28+
<x-jet-input class="block mt-1 w-full" type="text" name="recovery_code" x-ref="recovery_code" autocomplete="one-time-code" />
2929
</div>
3030

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

0 commit comments

Comments
 (0)
Please sign in to comment.