diff --git a/application/index/controller/Install.php b/application/index/controller/Install.php index 2eb756b8..79f47f9d 100644 --- a/application/index/controller/Install.php +++ b/application/index/controller/Install.php @@ -168,13 +168,10 @@ EOT; { try { $user = false; - if (Session::has('uid') && Session::has('token')) { - $user = Users::get([ - 'id' => Session::get('uid'), - 'token' => Session::get('token') - ]); + if (Session::has('uid')) { + $user = Users::get(Session::get('uid')); if (!$user) { - Session::delete(['uid', 'token']); + Session::delete('uid'); } }