Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: VITOMARTIN.COM on May 29, 2017, 01:36:33 PM

Title: "invalid reference site" when an user try to login (after an update)
Post by: VITOMARTIN.COM on May 29, 2017, 01:36:33 PM
"invalid reference site" when an user try to login (after an update forum from 2.0.9 to 2.0.14)

thank you very much
Title: Re: "invalid reference site" when an user try to login (after an update)
Post by: vbgamer45 on May 29, 2017, 01:45:46 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: "invalid reference site" when an user try to login (after an update)
Post by: VITOMARTIN.COM on May 29, 2017, 02:43:52 PM
Excellent! Thank you very much!  :)  ;)  :D  ;D  8)