/**
 * Implements hook_update_N().
 */
function min_password_update_8011() {
  $config = \Drupal::configFactory();
  $password_length = $config->get('user.settings')->get('password_length');
  if ($password_length) {
    $config->getEditable('min_password.settings')->set('password_length', $password_length)->save();
    $config->getEditable('user.settings')->clear('password_length')->delete();
  }

}

Last update deletes a user.settings. Without this config entity created by anonymous can't be edited, /config/people/account page doesn't work, email notifications not working etc.
Update must be $config->getEditable('user.settings')->clear('password_length')->save(); not ->delete();

Comments

seonic created an issue. See original summary.

  • andrew answer committed 54859688 on 1.0.x
    Resolve #3484863 "Module deletes user.settings configuration"
    
andrew answer’s picture

Status: Active » Fixed

Thank you, @seonic,

bug is fixed in 1.0.5 version!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.