addError in authenticate function, LoginForm model still return has-success

Issue #54 new
Adit Linda created an issue

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)

  1. Log in to comment