[misc] merge feedback #7861.
This commit is contained in:
+2
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user