mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 10:31:57 +02:00
[ticket/12684] Add an error on user creation failure
PHPBB3-12684
This commit is contained in:
@@ -185,6 +185,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'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user