From 489765642573351af361483f11a43e1a0adb4bc8 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 31 Mar 2019 16:07:36 +0800 Subject: [PATCH] Fix passing extra view info --- app/Http/Controllers/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 7e5a749f..e9390a7a 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -86,7 +86,7 @@ class AuthController extends Controller if (option('user_can_register')) { return view('auth.register', [ 'extra' => [ - 'player' => option('register_with_player_name'), + 'player' => (bool) option('register_with_player_name'), 'recaptcha' => option('recaptcha_sitekey'), 'invisible' => (bool) option('recaptcha_invisible'), ]