diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php index d987e14..621bb63 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php @@ -68,6 +68,8 @@ public function preSave() { * {@inheritdoc} */ public function isEmpty() { + // We cannot use the parent implementation from StringItem as it does not + // consider the additional 'existing' property that PasswordItem contains. $value = $this->get('value')->getValue(); $existing = $this->get('existing')->getValue(); return $value === NULL && $existing === NULL; diff --git a/core/modules/user/user.install b/core/modules/user/user.install index 91a908e..dd55b49 100644 --- a/core/modules/user/user.install +++ b/core/modules/user/user.install @@ -70,7 +70,6 @@ function user_install() { ->create(array( 'uid' => 0, 'status' => 0, - 'name' => '', )) ->save();