From b877163ef37914bcdd4e02a7a43f66f6fd72bb9e Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Mon, 17 Aug 2020 09:22:33 +0800 Subject: [PATCH] * Fix bug #3358. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 20142a69d3..acd30bd074 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1442,7 +1442,7 @@ EOD; $method = $this->app->rawMethod; } - if(!empty($this->app->user->modifyPassword) and (($module != 'my' or $method != 'changepassword') and ($module != 'user' or $method != 'logout'))) die(js::locate(helper::createLink('my', 'changepassword'))); + if(!empty($this->app->user->modifyPassword) and (($module != 'my' or $method != 'changepassword') and ($module != 'user' or $method != 'logout'))) die(js::locate(helper::createLink('my', 'changepassword', '', '', true))); if($this->isOpenMethod($module, $method)) return true; if(!$this->loadModel('user')->isLogon() and $this->server->php_auth_user) $this->user->identifyByPhpAuth(); if(!$this->loadModel('user')->isLogon() and $this->cookie->za) $this->user->identifyByCookie();