Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/16036] Add S_FORM_TOKEN_LOGIN to all login forms #5578

merged 1 commit into from May 2, 2019
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+8 −0
Diff settings


Just for now

@@ -2664,6 +2664,9 @@ function login_forum_box($forum_data)
// Add form token for login box
add_form_key('login', '_LOGIN');
'FORUM_NAME' => isset($forum_data['forum_name']) ? $forum_data['forum_name'] : '',
'S_LOGIN_ACTION' => build_url(array('f')),
@@ -25,6 +25,7 @@ <h2 class="login-title">{L_LOGIN}</h2>
<dd><input type="password" tabindex="1" id="password" name="password" size="25" class="inputbox narrow" autocomplete="off" /></dd>
<dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" id="login" class="button1" value="{L_LOGIN}" tabindex="2" /></dd>
@@ -114,6 +114,7 @@ <h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED --
<dd><input type="submit" name="login" tabindex="5" value="{L_LOGIN}" class="button1" /></dd>

@@ -198,6 +198,9 @@
// 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');
'S_NO_READ_ACCESS' => true,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.