Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSheer committed May 6, 2019
1 parent 2de6ab9 commit 1ec271f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.php
Expand Up @@ -98,6 +98,7 @@
// No active session?
if (!$stk_session)
{
add_form_key('stk_login_form', '_LOGIN');
// We're trying to login
if (isset($_POST['login']))
{
Expand All @@ -106,11 +107,10 @@
// Make sure that we do not have an stk_last_login cache file (expires after 3 seconds). To prevent a bruteforce attack
$err_msg = 'STK_LOGIN_WAIT';
}
/* else if (!check_form_key('stk_login_form'))
else if (!check_form_key('stk_login_form'))
{
$err_msg = 'FORM_INVALID';
}
*/
else
{
// Create a hash of the given token to compare the password
Expand Down Expand Up @@ -138,8 +138,6 @@
// Still no session. Make the user happy and show him something to work with
if (!$stk_session)
{
add_form_key('stk_login_form');

$template->assign_vars(array(
// Password field related
'TITLE' => $lang['SUPPORT_TOOL_KIT_PASSWORD'],
Expand Down

0 comments on commit 1ec271f

Please sign in to comment.