1 user.install user_update_1026()

Correct the default config value for the "flood_uid_only" setting.

Related topics

File

core/modules/user/user.install, line 2363
Install, update and uninstall functions for the user module.

Code

function user_update_1026() {
  $config = config('user.flood');

  // Only update if the value is exactly the string "false".
  if ($config->get('flood_uid_only') === 'false') {
    $config->set('flood_uid_only', '0');
    $config->save();
  }
}