diff --git a/core/modules/user/lib/Drupal/user/RegisterFormController.php b/core/modules/user/lib/Drupal/user/RegisterFormController.php index 566ed309c5bd45b48205fc91c62d690f04e58efb..23b4d790adff83f500cbb5ff505c7d332fa342f4 100644 --- a/core/modules/user/lib/Drupal/user/RegisterFormController.php +++ b/core/modules/user/lib/Drupal/user/RegisterFormController.php @@ -99,14 +99,10 @@ public function save(array $form, array &$form_state) { $admin = $form_state['values']['administer_users']; $notify = !empty($form_state['values']['notify']); + // Save has no return value so this cannot be tested. + // Assume save has gone through correctly. $account->save(); - // Terminate if an error occurred while saving the account. - if ($status =! SAVED_NEW) { - drupal_set_message(t("Error saving user account."), 'error'); - $form_state['redirect'] = ''; - return; - } $form_state['user'] = $account; $form_state['values']['uid'] = $account->uid;