Update auth.php

This commit is contained in:
Julian Prieber 2023-12-18 17:52:08 +01:00
parent 89981b3ecf
commit 30523f13ef
1 changed files with 1 additions and 1 deletions

View File

@ -28,8 +28,8 @@ if(config('advanced-config.forgot_password_url') != '') {
$forgot_password = "/forgot-password"; $forgot_password = "/forgot-password";
} }
if(env('ALLOW_REGISTRATION') or $register !== '/register') {
Route::post('/validate-handle', [RegisteredUserController::class, 'validateHandle']); Route::post('/validate-handle', [RegisteredUserController::class, 'validateHandle']);
if(env('ALLOW_REGISTRATION') or $register !== '/register') {
Route::get($register, [RegisteredUserController::class, 'create']) Route::get($register, [RegisteredUserController::class, 'create'])
->middleware('guest') ->middleware('guest')
->middleware('max.users') ->middleware('max.users')