Want to get involved in developing SMF, then why not lend a hand on our github!
<input type="hidden" name="hash_passwrd" value="" />
echo ' <div class="user_bar"> <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script> <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '> <span>'.$txt['username'].': </span><input type="text" name="user" size="10" class="input_text" /> <span>'.$txt['password'].': </span><input type="password" name="passwrd" size="10" class="input_password" /> <input type="submit" value="', $txt['login'], '" class="button_submit" /> <input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" /> </form> </div>'; }
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Think in spanish, habla en inglés.
I would put that code from the patch before </form> tag if you have a login option on that theme.
From what I tested in my site this should be enough, I do modify my theme because of that error.
All themes need updating now.
in your themes index.template.php look after the </form> tag addCode: [Select]<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Needs to be inside the <form> so it if it is after the </form> it is outside of everything the form is...
Yeah my mistake on the wording there. should be that closing </form> tag
Either add it in after the starting <form> or before the closing </form> would work