api/modules/v1/forms/admin/auth/LoginForm.php
/**
     * Logs in a user using the provided username and password.
     *
     * @return bool whether the user is logged in successfully
     */
Logs in a user using the provided username and password.
@return bool whether the user is logged in successfully
Logs in a user using the provided username and password . @return bool whether the user is logged in successfully
public function login()
    {
        if ($this->validate() ) {
            if(!$this->_user->auth_key) {
                $this->_user->generateToken();
            } else {
                \Yii::$app->user->login($this->_user);
            }
            return true;
        } else {
            return false;
        }
    }
public function login ( ) { if ( $ this -> validate ( ) ) { if ( ! $ this -> _user -> auth_key ) { $ this -> _user -> generateToken ( ) ; } else { \ Yii :: $ app -> user -> login ( $ this -> _user ) ; } return true ; } else { return false ; } }
Logs in a user using the provided username and password.
Logs in a user using the provided username and password .