Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: antler on June 02, 2017, 07:28:37 PM

Title: Login after update
Post by: antler on June 02, 2017, 07:28:37 PM
I get this message on login:
Your session timed out while posting. Please go back and try again.
Title: Re: Login after update
Post by: vbgamer45 on June 02, 2017, 10:07:26 PM
If your custom theme has a login form such as in the index.template.php or boardindex.template.php or in the login.template.php

The 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.


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


This code is used to help increase security for SMF.
Title: Re: Login after update
Post by: Web Help Forums on June 12, 2017, 08:03:06 AM
Can confirm this works.
Title: Re: Login after update
Post by: mermouy on November 09, 2017, 11:55:13 AM
Hi,
Sorry for my ignorance,
What file should I modify exacly?
With aldo theme for example...
Title: Re: Login after update
Post by: Illori on November 09, 2017, 11:59:58 AM
take a look at https://wiki.simplemachines.org/smf/Login_error_2.0.14