selfhosted/models/forms/LoginForm.php
/**
     * Logs in a user using the provided username and password.
     *
     * @return boolean whether the user is logged in successfully
     */
Logs in a user using the provided username and password.
@return boolean whether the user is logged in successfully
Logs in a user using the provided username and password . @return boolean whether the user is logged in successfully
public function login()
    {
        if ($this->validate()) {
            $this->getUser();
            if ($this->_user && in_array($this->_user->shu_status,[
                    SelfHostUsers::STATUS_ACTIVE,
                    SelfHostUsers::STATUS_CONFIRMED,
                    SelfHostUsers::STATUS_SH_LOCKED,
                ])) {
                return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600 * 24 * 365 : 0);
            }
        }
        return false;
    }
public function login ( ) { if ( $ this -> validate ( ) ) { $ this -> getUser ( ) ; if ( $ this -> _user && in_array ( $ this -> _user -> shu_status , [ SelfHostUsers :: STATUS_ACTIVE , SelfHostUsers :: STATUS_CONFIRMED , SelfHostUsers :: STATUS_SH_LOCKED , ] ) ) { return Yii :: $ app -> user -> login ( $ this -> getUser ( ) , $ this -> rememberMe ? 3600 * 24 * 365 : 0 ) ; } } return false ; }
Logs in a user using the provided username and password.
Logs in a user using the provided username and password .