Fix passing extra view info

This commit is contained in:
Pig Fang 2019-03-31 16:07:36 +08:00
parent 3022f9f337
commit 4897656425

View File

@ -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'),
]