mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11327] Use U_ prefix for reset password URL template variable
PHPBB3-11327
This commit is contained in:
parent
7a3e351178
commit
454ea081f1
2 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
]),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!-- INCLUDE overall_header.html -->
|
||||
|
||||
<form action="{{ S_PROFILE_ACTION }}" method="post" id="reset_password">
|
||||
<form action="{{ U_RESET_PASSWORD_ACTION }}" method="post" id="reset_password">
|
||||
|
||||
<div class="panel">
|
||||
<div class="inner">
|
||||
|
|
Loading…
Add table
Reference in a new issue