Skip to content

Commit 8555a8e

Browse files
Update home.blade.php
Added option to override registration, even if disabled with the setting in the database. This is something that probably 99.999% of users will never need, but I really need a function like this for my personal instance. If "REGISTER_OVERRIDE=true" is added to the .env config file, users will be able to register no matter what is set with the setting in the database. This is useful if two LittleLink Custom instances access the same database, but one should allow registration and the other should not. If this causes any errors in the future, I will remove this.
1 parent 5cf80b0 commit 8555a8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/views/home.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ function update_color_scheme() {
7272

7373
@if (Route::has('register') and $page->register == 'true')
7474
<a href="{{ route('register') }}" class="underline spacing">Register</a>
75+
@elseif (env('REGISTER_OVERRIDE') === true)
76+
<a href="{{ route('register') }}" class="underline spacing">Register</a>
7577
@endif
7678
@endauth
7779
@endif

0 commit comments

Comments
 (0)