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)
))
)
)