feat: allow invited users to register

Signed-off-by: Miguel Nogueira <me@nogueira.codes>
This commit is contained in:
2025-08-07 19:50:27 +01:00
parent f7c62a4ac2
commit 6739fde41a
2 changed files with 30 additions and 2 deletions

View File

@@ -14,9 +14,17 @@
<img src="{{ asset(config('adminlte.logo_img_xl')) }}" alt="logo" class="logo rounded mr-2">
</div> <!-- main content start -->
@if(\App\Facades\Options::getOption('enable_registrations') == true)
@if(\App\Facades\Options::getOption('enable_registrations') == true || session()->has('ALLOW_REGISTRATION_OVERRIDE'))
<p class="login-card-description">{{__('Sign up for an account')}}</p>
@if(session()->has('ALLOW_REGISTRATION_OVERRIDE') && session('ALLOW_REGISTRATION_OVERRIDE') === true)
<div class="alert alert-info">
<strong><i class="fas fa-info-circle"></i> {{ __('Invite only registration') }}</strong>
<p>{{ __('You are signing up with an invitation. Please use the original email address you were invited with to complete your registration. Any other email address will not work.') }}</p>
<p>{{ __('If you close the browser or otherwise clear your cookies, this page will NOT be available again if registrations are still closed.') }}</p>
</div>
@endif
@if(\App\Facades\Options::getOption('pw_security_policy') !== 'off')
<div class="alert alert-warning alert-dismissible">