save session when terminate abnormally
This commit is contained in:
parent
fe8291d05c
commit
fd622e2eb8
@ -188,7 +188,6 @@ class AuthController extends Controller
|
||||
}
|
||||
|
||||
Session::put('last_mail_time', time());
|
||||
Session::save();
|
||||
|
||||
View::json('邮件已发送,一小时内有效,请注意查收.', 0);
|
||||
}
|
||||
|
@ -111,7 +111,6 @@ class UserController extends Controller
|
||||
setcookie('token', '', time() - 3600, '/');
|
||||
|
||||
Session::flush();
|
||||
Session::save();
|
||||
|
||||
View::json('账号已被成功删除', 0);
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ class CheckAuthenticated
|
||||
setcookie('token', '', time() - 3600, '/');
|
||||
|
||||
Session::flush();
|
||||
Session::save();
|
||||
|
||||
throw new PrettyPageException('你已经被本站封禁啦,请联系管理员解决', 5);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user