/**
* 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
Comment #3
andrew answer commentedThank you, @seonic,
bug is fixed in 1.0.5 version!