Login error 2.0.14: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
m (Enhanced use of English)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
You installed the 2.0.14 update or installed 2.0.14 directly and started having problems with users logging into your forum
{{Version specific
|version=2.0.14 and 2.0.15}}
This page is only relevant if you installed the 2.0.14 or 2.0.15 patch or upgrade, installed 2.0.14 or 2.0.15 directly, or installed a theme created prior to the release of 2.0.14 and started having problems with users logging into your forum. The error message which is shown will be a session timeout.


If your custom theme has a login form such as in index.template.php, boardindex.template.php or login.template.php you will need to modify the theme to allow the login function to work correctly.
SMF 2.0.14+ now requires the a session check in the <form> for the login function. If your custom theme has a login form, such as in index.template.php, boardindex.template.php or login.template.php, you will need to modify the theme to allow the login function to work correctly. In order to modify the theme, add the following code along with the other "hidden" input types, or anywhere before the closing </form> tag in the login form.


SMF 2.0.14+ now requires the following code added in the <form> tag  just add in the closing </form> tag in any login form.
{{code|1=  
{{code|1=  
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Line 9: Line 10:


This code is used to help increase security for SMF.
This code is used to help increase security for SMF.
2.0.16 has added special code that injects the above HTML into any login form, regardless of theme.


[[Category:FAQ]]
[[Category:FAQ]]

Latest revision as of 10:45, 19 September 2020

This page is only relevant if you installed the 2.0.14 or 2.0.15 patch or upgrade, installed 2.0.14 or 2.0.15 directly, or installed a theme created prior to the release of 2.0.14 and started having problems with users logging into your forum. The error message which is shown will be a session timeout.

SMF 2.0.14+ now requires the a session check in the <form> for the login function. If your custom theme has a login form, such as in index.template.php, boardindex.template.php or login.template.php, you will need to modify the theme to allow the login function to work correctly. In order to modify the theme, add the following code along with the other "hidden" input types, or anywhere before the closing </form> tag in the login form.

<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

This code is used to help increase security for SMF.

2.0.16 has added special code that injects the above HTML into any login form, regardless of theme.



Advertisement: