[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
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 8 additions and 8 deletions

View file

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

View file

@ -1,6 +1,6 @@
<!-- INCLUDE overall_header.html --> <!-- 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="panel">
<div class="inner"> <div class="inner">