aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/user
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-02-29 14:50:19 -0800
committerMatt Friedman <maf675@gmail.com>2016-02-29 14:50:19 -0800
commit97c6cce687d94071d6f902af272631c21dbacfcb (patch)
tree989e4e0a93f7c148f8bf018177fcba895bb9cba9 /phpBB/phpbb/console/command/user
parenta84f77bf25c897067f5078ae2139214e5882192b (diff)
downloadforums-97c6cce687d94071d6f902af272631c21dbacfcb.tar
forums-97c6cce687d94071d6f902af272631c21dbacfcb.tar.gz
forums-97c6cce687d94071d6f902af272631c21dbacfcb.tar.bz2
forums-97c6cce687d94071d6f902af272631c21dbacfcb.tar.xz
forums-97c6cce687d94071d6f902af272631c21dbacfcb.zip
[ticket/12684] Some code clean up
PHPBB3-12684
Diffstat (limited to 'phpBB/phpbb/console/command/user')
-rw-r--r--phpBB/phpbb/console/command/user/add.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/phpBB/phpbb/console/command/user/add.php b/phpBB/phpbb/console/command/user/add.php
index 647c353dd0..d85c9599c5 100644
--- a/phpBB/phpbb/console/command/user/add.php
+++ b/phpBB/phpbb/console/command/user/add.php
@@ -125,9 +125,7 @@ class add extends \phpbb\console\command\command
$question->setValidator(function ($value) use ($self, $helper, $input, $output) {
$question = new Question($self->ask_user('CONFIRM_PASSWORD'));
$question->setHidden(true);
-
- $confirm = $helper->ask($input, $output, $question);
- if ($confirm != $value)
+ if ($helper->ask($input, $output, $question) != $value)
{
throw new runtime_exception($self->language->lang('NEW_PASSWORD_ERROR'));
}
@@ -148,15 +146,6 @@ class add extends \phpbb\console\command\command
try
{
$this->validate_user_data($data);
- }
- catch (runtime_exception $e)
- {
- $io->error($e->getMessage());
- return 1;
- }
-
- try
- {
$group_id = $this->get_group_id();
}
catch (runtime_exception $e)