addError in authenticate function, LoginForm model still return has-success
Issue #54
new
Hello, thanks for the great plugin I create a login from with ajax validation, for error empty field, my application showing has-error css class But for login Incorrect still return has-success css class Why $this->addError method not return has-error css class but has-success ?
public function authenticate($attribute, $params) {
if (!$this->hasErrors()) {
$this->_identity = new UserIdentity($this->username, $this->password);
if (!$this->_identity->authenticate())
//Why this method not return has-error css class but has-success ?
$this->addError('password', 'Incorrect username or password.');
}
}
Comments (1)
-
repo owner - Log in to comment
Hi Adit Linda,
puh I don't no sorry , did you debug anything ?