1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 03:34:04 +02:00

[ticket/16308] Fix UCP reset password

PHPBB3-16308
This commit is contained in:
3D-I
2020-01-09 23:54:40 +01:00
parent 531f5dd9da
commit a2fa918da2
2 changed files with 3 additions and 6 deletions

View File

@@ -424,12 +424,9 @@ class reset_password
}
}
if (!empty($errors))
{
$this->template->assign_block_vars_array('PASSWORD_RESET_ERRORS', array_map([$this->language, 'lang'], $errors));
}
$this->template->assign_vars([
'S_PASSWORD_RESET_ERRORS' => (bool) !empty($errors),
'PASSWORD_RESET_ERRORS' => implode('<br>', array_map([$this->language, 'lang'], $errors)),
'S_IS_PASSWORD_RESET' => true,
'U_RESET_PASSWORD_ACTION' => $this->helper->route('phpbb_ucp_reset_password_controller'),
'S_HIDDEN_FIELDS' => build_hidden_fields([