Skip to content

Commit a65509b

Browse files
Update register.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 8638072 commit a65509b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
1414
</a>
1515
</x-slot>
16-
@if($page->register == 'true')
16+
@if($page->register == 'true' or env('REGISTER_OVERRIDE') === true)
1717
<!-- Validation Errors -->
1818
<x-auth-validation-errors class="mb-4" :errors="$errors" />
1919

0 commit comments

Comments
 (0)