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";
}
Route::post('/validate-handle', [RegisteredUserController::class, 'validateHandle']);
if(env('ALLOW_REGISTRATION') or $register !== '/register') {
Route::post('/validate-handle', [RegisteredUserController::class, 'validateHandle']);
Route::get($register, [RegisteredUserController::class, 'create'])
->middleware('guest')
->middleware('max.users')