Skip to content

Commit d571e7e

Browse files
committed
fixed auth pages and config
1 parent 3ed6aad commit d571e7e

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

app/Providers/FortifyServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public function boot()
4848
}
4949
});
5050
Fortify::registerView(function () {
51-
if (config('quickstart.access.user.login')) {
51+
if (config('quickstart.access.user.login') && config('quickstart.access.user.registration')) {
5252
return view('auth.register');
5353
} else {
54-
return (abort(404));
54+
abort(404);
5555
}
5656
});
5757
Fortify::requestPasswordResetLinkView(function () {

resources/views/auth/confirm-password.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
@include('includes.partials.lang')
1010
@include('includes.partials.switch')
1111
</div>
12-
<h1 class="font-bold text-2xl my-3">{{ __('headings.confirm-password') }}</h1>
13-
<p>{{ __('You need to confirm your password to complete this action.') }}</p>
12+
<h1 class="font-bold text-2xl my-3 dark:text-white">{{ __('headings.confirm-password') }}</h1>
13+
<p class="dark:text-white">{{ __('You need to confirm your password to complete this action.') }}</p>
1414
@include('includes.partials.messages')
1515
<x-forms.post :action="route('password.confirm')">
1616
<div class="my-3">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
@include('includes.partials.lang')
1010
@include('includes.partials.switch')
1111
</div>
12-
<h1 class="font-bold text-2xl my-3">{{ __('headings.password-reset') }}</h1>
13-
<p>{{ __('Reset your forgotten password') }}</p>
12+
<h1 class="font-bold text-2xl my-3 dark:text-white">{{ __('headings.password-reset') }}</h1>
13+
<p class="dark:text-white">{{ __('Reset your forgotten password') }}</p>
1414
@include('includes.partials.messages')
1515
<x-forms.post :action="route('password.email')">
1616
<div class="my-2">

resources/views/auth/login.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
</button>
3737
<a href="{{ route('password.request') }}">Forgot password?</a>
3838
</div>
39-
<div>
40-
<p>Don't have an account yet? <a href="{{ route('register') }}" class="font-bold">Register Now</a></p>
41-
</div>
39+
@if(config('quickstart.access.user.registration'))
40+
<div>
41+
<p>Don't have an account yet? <a href="{{ route('register') }}" class="font-bold">Register Now</a></p>
42+
</div>
43+
@endif
4244
</x-forms.post>
4345
<div class="divider my-6">
4446
<span class="px-2 py-1 rounded-xl bg-gray-800 dark:bg-gray-200 text-gray-200 dark:text-gray-800">or use social login</span>

resources/views/auth/register.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@
6060
</button>
6161
</div>
6262
</x-forms.post>
63-
<div>
64-
<p>Already have an account? <a href="{{ route('login') }}" class="font-bold">Login Now</a></p>
65-
</div>
63+
@if(config('quickstart.access.user.login'))
64+
<div>
65+
<p>Already have an account? <a href="{{ route('login') }}" class="font-bold">Login Now</a></p>
66+
</div>
67+
@endif
6668
<div class="divider my-4">
6769
<span class="px-2 py-1 rounded-xl bg-gray-800 dark:bg-gray-200 text-gray-200 dark:text-gray-800">or use social login</span>
6870
</div>

0 commit comments

Comments
 (0)