diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index ba39270f..f6882baf 100755 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -138,7 +138,7 @@ class RegisterController extends Controller Log::info('User registered: ', $user->toArray()); - $userFields = UserField::all(); + $userFields = UserField::where(['show_on_registration' => true, 'active' => true])->get(); foreach ($userFields as $field) { $field_name = 'field_'.$field->slug; UserFieldValue::updateOrCreate([