mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 01:08:52 +00:00
[ticket/12684] Allowed to use $this in enclosure
PHPBB3-12684
This commit is contained in:
parent
0ca4484525
commit
b17f9fc81c
1 changed files with 3 additions and 4 deletions
|
@ -140,14 +140,13 @@ class add extends \phpbb\console\command\command
|
|||
|
||||
if (!$data['new_password'])
|
||||
{
|
||||
$self = $this;
|
||||
$question = new Question($this->ask_user('PASSWORD'));
|
||||
$question->setValidator(function ($value) use ($self, $helper, $input, $output) {
|
||||
$question = new Question($self->ask_user('CONFIRM_PASSWORD'));
|
||||
$question->setValidator(function ($value) use ($helper, $input, $output) {
|
||||
$question = new Question($this->ask_user('CONFIRM_PASSWORD'));
|
||||
$question->setHidden(true);
|
||||
if ($helper->ask($input, $output, $question) != $value)
|
||||
{
|
||||
throw new runtime_exception($self->language->lang('NEW_PASSWORD_ERROR'));
|
||||
throw new runtime_exception($this->language->lang('NEW_PASSWORD_ERROR'));
|
||||
}
|
||||
return $value;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue