Skip to content

Commit e7d29e1

Browse files
authored
Update show.blade.php (#197)
If the updatePasswords feature is disabled (because the project is implementing password-less login) then the password form should be excluded from the profile view
1 parent c1ff4a5 commit e7d29e1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

stubs/livewire/resources/views/profile/show.blade.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
1010
@livewire('profile.update-profile-information-form')
1111

12-
<x-jet-section-border />
13-
14-
<div class="mt-10 sm:mt-0">
15-
@livewire('profile.update-password-form')
16-
</div>
12+
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()))
13+
<x-jet-section-border />
14+
15+
<div class="mt-10 sm:mt-0">
16+
@livewire('profile.update-password-form')
17+
</div>
18+
@endif
1719

1820
@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication())
1921
<x-jet-section-border />

0 commit comments

Comments
 (0)