The SamlAuthService::updateUser function no longer works as expected since this change:
if ($localUser[$key] !== $value) {
$changed = true;
break;
}
Indeed, $value (which comes from the settings) is a string, but $localUser[$key] may have a different type.
For example, $localUser['pid'] is an integer, but in this case $value is a string.
We should not use !== but !=, otherwise this code considers that it is always different and that changed is always true.
The SamlAuthService::updateUser function no longer works as expected since this change:
Indeed, $value (which comes from the settings) is a string, but $localUser[$key] may have a different type. For example, $localUser['pid'] is an integer, but in this case $value is a string. We should not use !== but !=, otherwise this code considers that it is always different and that changed is always true.