Update RegisterController.php (#1373)
Get only active and displayed UserFields.
This commit is contained in:
parent
c12cf0964a
commit
fd7c1b8314
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user