Update Login.php

This commit is contained in:
Anyon 2019-04-08 13:03:50 +08:00
parent f5e65f3035
commit 7d5b6fa3ea

View File

@ -97,7 +97,6 @@ class Login extends Controller
*/
public function out()
{
if ($_SESSION) $_SESSION = [];
[session_unset(), session_destroy()];
$this->success('退出登录成功!', url('@admin/login'));
}