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

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,148
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
« 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

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:
Unable to verify referring url. Please go back and try again.


My SMF Mods & Plug-Ins

Simple Portal Support

Request politely & demand nothing.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,390
  • Riding the endless highway in the sky.
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.