Fixed disabling registration does not remove "Register"-Link

https://github.com/JulianPrieber/littlelink-custom/issues/371
This commit is contained in:
Julian Prieber 2023-03-21 20:58:43 +01:00
parent 8a21ddfff6
commit 76987e6a6b
2 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,9 @@
</div>
<div class="flex items-center justify-end mt-4">
@if($page->register == 'true' or env('REGISTER_OVERRIDE') === true)
<a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('register') }}">Register</a>&emsp;
@endif
@if (Route::has('password.request'))
<a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('password.request') }}">
{{ __('Forgot your password?') }}

View File

@ -113,6 +113,8 @@ foreach($pages as $page)
</x-button>
</div>
</form>
@else
<br><br><center><h3>Registration is disabled by the administrator</h3></center><br>
@endif
</x-auth-card>
</x-guest-layout>