diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.php index d26e8fc..cb9db12 100644 --- a/app/Providers/FortifyServiceProvider.php +++ b/app/Providers/FortifyServiceProvider.php @@ -48,10 +48,10 @@ public function boot() } }); Fortify::registerView(function () { - if (config('quickstart.access.user.login')) { + if (config('quickstart.access.user.login') && config('quickstart.access.user.registration')) { return view('auth.register'); } else { - return (abort(404)); + abort(404); } }); Fortify::requestPasswordResetLinkView(function () { diff --git a/resources/views/auth/confirm-password.blade.php b/resources/views/auth/confirm-password.blade.php index 5200eb1..c0c6c90 100644 --- a/resources/views/auth/confirm-password.blade.php +++ b/resources/views/auth/confirm-password.blade.php @@ -9,8 +9,8 @@ @include('includes.partials.lang') @include('includes.partials.switch') -

{{ __('headings.confirm-password') }}

-

{{ __('You need to confirm your password to complete this action.') }}

+

{{ __('headings.confirm-password') }}

+

{{ __('You need to confirm your password to complete this action.') }}

@include('includes.partials.messages')
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index 3c7aba5..dfa9762 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -9,8 +9,8 @@ @include('includes.partials.lang') @include('includes.partials.switch')
-

{{ __('headings.password-reset') }}

-

{{ __('Reset your forgotten password') }}

+

{{ __('headings.password-reset') }}

+

{{ __('Reset your forgotten password') }}

@include('includes.partials.messages')
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index ca08fbb..d24e941 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -36,9 +36,11 @@ Forgot password?
-
-

Don't have an account yet? Register Now

-
+ @if(config('quickstart.access.user.registration')) +
+

Don't have an account yet? Register Now

+
+ @endif
or use social login diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index b0d16f1..4bebfd6 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -60,9 +60,11 @@
-
-

Already have an account? Login Now

-
+ @if(config('quickstart.access.user.login')) +
+

Already have an account? Login Now

+
+ @endif
or use social login