From 5ab6476b0f5b80bb73de906e2d1fdcd9afe221b1 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 28 Nov 2023 15:25:09 +0800 Subject: [PATCH] * userUI: modify label and link of forgotten password. --- module/user/ui/login.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/user/ui/login.html.php b/module/user/ui/login.html.php index 56d1d05123..f31f7057ca 100644 --- a/module/user/ui/login.html.php +++ b/module/user/ui/login.html.php @@ -12,7 +12,7 @@ namespace zin; if(empty($config->notMd5Pwd)) h::import($config->webRoot . 'js/md5.js', 'js'); -$resetLink = (isset($this->config->resetPWDByMail) and $this->config->resetPWDByMail) ? inlink('forgetPassword') : inlink('reset'); +$resetLink = empty($this->config->resetPWDByMail) ? inlink('reset') : inlink('forgetPassword'); $zentaoDirName = basename($this->app->getBasePath()); $clientLang = $app->getClientLang(); $langItems = array(); @@ -142,7 +142,7 @@ div set::actions(array ( array('text' => $lang->login, 'id' => 'submit', 'class' => 'primary'), - array('text' => $lang->user->resetPassword, 'class' => 'resetPassword', 'url' => $resetLink) + array('text' => $lang->user->forgetPassword, 'class' => 'resetPassword', 'url' => $resetLink) )) ) )