登录次数限制
This commit is contained in:
@@ -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, '账号或密码错误!');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user