登录次数限制

This commit is contained in:
2024-12-04 14:15:38 +08:00
parent 915a144c31
commit a9d80997b6
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class LoginForm extends BaseModel
if (!$this->hasErrors()) {
$user = $this->getUser();
if (!$user || !$user->validatePassword($this->password)) {
$this->addError($attribute, 'Incorrect mobile or password.');
$this->addError($attribute, '账号或密码错误!');
}
}
}