diff --git a/classes/loginflow/base.php b/classes/loginflow/base.php index 674b79e..3a918f9 100644 --- a/classes/loginflow/base.php +++ b/classes/loginflow/base.php @@ -68,10 +68,9 @@ class base { continue; } list($remotefield, $localfield, $behavior) = $fieldmap; - if (in_array($localfield, ['idnumber', 'firstname', 'lastname', 'email', 'lang'])) { - if (in_array($behavior, ['onlogin', 'always'])) { - $forcedconfig['field_updatelocal_' . $localfield] = 'onlogin'; - } + if (in_array($behavior, ['onlogin', 'always'])) { + $forcedconfig['field_updatelocal_' . $localfield] = 'onlogin'; + $forcedconfig['field_lock_' . $localfield] = 'unlocked'; } } }