1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/16036] Add S_FORM_TOKEN_LOGIN to all login forms

PHPBB3-16036
This commit is contained in:
rubencm
2019-04-29 15:44:31 +00:00
parent 055d7658db
commit 540a6b7d2e
4 changed files with 8 additions and 0 deletions

View File

@@ -198,6 +198,9 @@ if (!($forum_data['forum_type'] == FORUM_POST || (($forum_data['forum_flags'] &
// We also make this circumstance available to the template in case we want to display a notice. ;)
if (!$auth->acl_gets('f_read', 'f_list_topics', $forum_id))
{
// Add form token for login box
add_form_key('login', '_LOGIN');
$template->assign_vars(array(
'S_NO_READ_ACCESS' => true,
));