Skip to content

Commit 76987e6

Browse files
committed
Fixed disabling registration does not remove "Register"-Link
#371
1 parent 8a21ddf commit 76987e6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

resources/views/auth/login.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
</div>
9999

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

resources/views/auth/register.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
</x-button>
114114
</div>
115115
</form>
116-
@endif
116+
@else
117+
<br><br><center><h3>Registration is disabled by the administrator</h3></center><br>
118+
@endif
117119
</x-auth-card>
118120
</x-guest-layout>

0 commit comments

Comments
 (0)