用户中心bug

This commit is contained in:
2020-04-09 20:51:30 +08:00
parent f08ae0bc69
commit 5629daa722
4 changed files with 114 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class Base extends BaseC {
protected function initialize() {
$url = str_replace(".", "/", strtolower($this->request->controller())) . '/' . $this->request->action();
if (!is_login() and !in_array($url, array('admin/index/login', 'admin/index/logout', 'admin/index/verify'))) {
if (!is_login() && !in_array($url, array('user/index/login', 'user/index/logout', 'user/index/verify', 'user/index/register'))) {
$this->redirect('/user/index/login');
}