Update RegisterController.php (#1358)
Only active fields should be passed to view during registration. Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
parent
52e716d6ee
commit
4d21ca0982
@ -62,7 +62,7 @@ class RegisterController extends Controller
|
|||||||
{
|
{
|
||||||
$airports = $this->airportRepo->selectBoxList(false, setting('pilots.home_hubs_only'));
|
$airports = $this->airportRepo->selectBoxList(false, setting('pilots.home_hubs_only'));
|
||||||
$airlines = $this->airlineRepo->selectBoxList();
|
$airlines = $this->airlineRepo->selectBoxList();
|
||||||
$userFields = UserField::where(['show_on_registration' => true])->get();
|
$userFields = UserField::where(['show_on_registration' => true, 'active' => true])->get();
|
||||||
|
|
||||||
return view('auth.register', [
|
return view('auth.register', [
|
||||||
'airports' => $airports,
|
'airports' => $airports,
|
||||||
|
Loading…
Reference in New Issue
Block a user