Browse Source

Fixed process login not using prefix

pull/24/head
Teknikode 8 years ago
parent
commit
002283ef6f
  1. 7
      includes/process_login.php

7
includes/process_login.php

@ -19,12 +19,7 @@ if(isset($_POST)) @@ -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