mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12684] Some code clean up
PHPBB3-12684
This commit is contained in:
parent
a84f77bf25
commit
97c6cce687
1 changed files with 1 additions and 12 deletions
|
@ -125,9 +125,7 @@ class add extends \phpbb\console\command\command
|
||||||
$question->setValidator(function ($value) use ($self, $helper, $input, $output) {
|
$question->setValidator(function ($value) use ($self, $helper, $input, $output) {
|
||||||
$question = new Question($self->ask_user('CONFIRM_PASSWORD'));
|
$question = new Question($self->ask_user('CONFIRM_PASSWORD'));
|
||||||
$question->setHidden(true);
|
$question->setHidden(true);
|
||||||
|
if ($helper->ask($input, $output, $question) != $value)
|
||||||
$confirm = $helper->ask($input, $output, $question);
|
|
||||||
if ($confirm != $value)
|
|
||||||
{
|
{
|
||||||
throw new runtime_exception($self->language->lang('NEW_PASSWORD_ERROR'));
|
throw new runtime_exception($self->language->lang('NEW_PASSWORD_ERROR'));
|
||||||
}
|
}
|
||||||
|
@ -148,15 +146,6 @@ class add extends \phpbb\console\command\command
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->validate_user_data($data);
|
$this->validate_user_data($data);
|
||||||
}
|
|
||||||
catch (runtime_exception $e)
|
|
||||||
{
|
|
||||||
$io->error($e->getMessage());
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
$group_id = $this->get_group_id();
|
$group_id = $this->get_group_id();
|
||||||
}
|
}
|
||||||
catch (runtime_exception $e)
|
catch (runtime_exception $e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue