mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #37 from phpbb/ticket/security/208
[ticket/security/208] Add form key to password reset form
This commit is contained in:
commit
0ec5e21979
1 changed files with 7 additions and 0 deletions
|
@ -41,8 +41,15 @@ class ucp_remind
|
||||||
$email = strtolower(request_var('email', ''));
|
$email = strtolower(request_var('email', ''));
|
||||||
$submit = (isset($_POST['submit'])) ? true : false;
|
$submit = (isset($_POST['submit'])) ? true : false;
|
||||||
|
|
||||||
|
add_form_key('ucp_remind');
|
||||||
|
|
||||||
if ($submit)
|
if ($submit)
|
||||||
{
|
{
|
||||||
|
if (!check_form_key('ucp_remind'))
|
||||||
|
{
|
||||||
|
trigger_error('FORM_INVALID');
|
||||||
|
}
|
||||||
|
|
||||||
$sql_array = array(
|
$sql_array = array(
|
||||||
'SELECT' => 'user_id, username, user_permissions, user_email, user_jabber, user_notify_type, user_type, user_lang, user_inactive_reason',
|
'SELECT' => 'user_id, username, user_permissions, user_email, user_jabber, user_notify_type, user_type, user_lang, user_inactive_reason',
|
||||||
'FROM' => array(USERS_TABLE => 'u'),
|
'FROM' => array(USERS_TABLE => 'u'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue