Browse Source

Fixed process login not using prefix

tags/v1.1^2
Teknikode 6 years ago
parent
commit
002283ef6f
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      includes/process_login.php

+ 1
- 6
includes/process_login.php View File

@@ -19,12 +19,7 @@ if(isset($_POST))
}
if ($userTools->login($username, hashPassword($password, $CONF), $remember, $CONF))
{
$user_var = 'user';
if ($CONF['dev_env'])
{
$user_var = 'user_dev';
}
$user = unserialize($_SESSION[$user_var]);
$user = unserialize($_SESSION[$CONF['session_prefix'].'user']);
$user->save($db);
//successful login, redirect them to a page
echo "true";

Loading…
Cancel
Save