Advertisement:

Author Topic: Login.template.php  (Read 1985 times)

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,028
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Login.template.php
« on: June 01, 2017, 08:17:44 PM »

re. SMF 2.0.14

There were some updates to this package/patch that included the hidden session variable within any login form due to the added session check in the Login2() function.
One hidden session variable was overlooked/neglected within the login form for the template_admin_login() function in ../Themes/default/Login.template.php

find:
Code: [Select]
<input type="hidden" name="admin_hash_pass" value="" />

add after:
Code: [Select]
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

Perhaps some of the reports of this error are related:
Quote
Unable to verify referring url. Please go back and try again.

 

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,082
  • 'Tis the gift to be simple
Re: Login.template.php
« Reply #1 on: June 21, 2017, 12:48:03 PM »
Does this affect all member logins or just admins?  Ran into this problem here, had to disable session check in LogInOut.php to fix it.