diff --git a/module/user/zen.php b/module/user/zen.php index 387318af8c..c057aeecea 100644 --- a/module/user/zen.php +++ b/module/user/zen.php @@ -155,7 +155,8 @@ class userZen extends user /* 验证账号和密码。*/ /* Verify account and password. */ - $user = $this->user->identify($account, $password, (int)$this->post->passwordStrength); + $passwordStrength = $viewType == 'json' ? 1 : (int)$this->post->passwordStrength; + $user = $this->user->identify($account, $password, $passwordStrength); /* 登录失败返回错误信息。*/ /* Return error message if login failed. */