From 48b0d60744c8c9af0b81cbcbdcb9c81e17f799e6 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 30 May 2022 10:26:37 +0800 Subject: [PATCH] * Fix bug #23058. --- 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 164a2741d3..77b1299f44 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -2289,7 +2289,7 @@ EOD; 'my' => array('changepassword'), 'message' => array('ajaxgetmessage'), ); - if(!empty($this->app->user->modifyPassword) and (!isset($beforeValidMethods[$module]) or !in_array($method, $beforeValidMethods[$module]))) return print(js::locate(helper::createLink('my', 'changepassword', '', '', true))); + if(!empty($this->app->user->modifyPassword) and (!isset($beforeValidMethods[$module]) or !in_array($method, $beforeValidMethods[$module]))) return print(js::locate(helper::createLink('my', 'changepassword'))); 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();