mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12684] Add an error on user creation failure
PHPBB3-12684
This commit is contained in:
parent
7b0452e53a
commit
8c5d6efad5
1 changed files with 6 additions and 0 deletions
|
@ -186,6 +186,12 @@ class add extends \phpbb\console\command\command
|
|||
|
||||
$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'])
|
||||
{
|
||||
$this->send_activation_email($user_id, $data);
|
||||
|
|
Loading…
Add table
Reference in a new issue