[ticket/12684] Add an error on user creation failure

PHPBB3-12684
This commit is contained in:
Matt Friedman 2016-03-05 09:20:04 -08:00
parent 7b0452e53a
commit 8c5d6efad5

View file

@ -185,6 +185,12 @@ class add extends \phpbb\console\command\command
); );
$user_id = (int) user_add($user_row); $user_id = (int) user_add($user_row);
if (!$user_id)
{
$io->error($this->language->lang('AUTH_NO_PROFILE_CREATED'));
return 1;
}
if ($input->getOption('send-email') && $this->config['email_enable']) if ($input->getOption('send-email') && $this->config['email_enable'])
{ {