Update auth.php
This commit is contained in:
parent
89981b3ecf
commit
30523f13ef
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue