1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11327] Use U_ prefix for reset password URL template variable

PHPBB3-11327
This commit is contained in:
Marc Alexander
2019-08-26 18:14:39 +02:00
parent 7a3e351178
commit 454ea081f1
2 changed files with 8 additions and 8 deletions

View File

@@ -275,9 +275,9 @@ class reset_password
}
$this->template->assign_vars([
'USERNAME' => $username,
'EMAIL' => $email,
'S_PROFILE_ACTION' => $this->helper->route('phpbb_ucp_forgot_password_controller'),
'USERNAME' => $username,
'EMAIL' => $email,
'U_RESET_PASSWORD_ACTION' => $this->helper->route('phpbb_ucp_forgot_password_controller'),
]);
return $this->helper->render('ucp_reset_password.html', $this->language->lang('RESET_PASSWORD'));
@@ -421,10 +421,10 @@ class reset_password
}
$this->template->assign_vars([
'S_IS_PASSWORD_RESET' => true,
'ERROR' => !empty($errors) ? implode('<br />', array_map([$this->language, 'lang'], $errors)) : '',
'S_PROFILE_ACTION' => $this->helper->route('phpbb_ucp_reset_password_controller'),
'S_HIDDEN_FIELDS' => build_hidden_fields([
'S_IS_PASSWORD_RESET' => true,
'ERROR' => !empty($errors) ? implode('<br />', array_map([$this->language, 'lang'], $errors)) : '',
'U_RESET_PASSWORD_ACTION' => $this->helper->route('phpbb_ucp_reset_password_controller'),
'S_HIDDEN_FIELDS' => build_hidden_fields([
'u' => $user_id,
'token' => $reset_token,
]),