public function actionAuthorize()
    {
        $model = new LoginForm();
        if ($model->load(Yii::$app->request->post()) && $model->login()) {
            if ($this->isOauthRequest) {
                $this->finishAuthorization();
            } else {
                return $this->goBack();
            }
        } else {
            $this->layout = false;
            return $this->render('authorize', [
                'model' => $model,
            ]);
        }
    }
public function actionAuthorize()
    {
        $model = new LoginForm();
        if ($model->load(Yii::$app->request->post()) && $model->login()) {
            if ($this->isOauthRequest) {
                $this->finishAuthorization();
            } else {
                return $this->goBack();
            }
        } else {
            $this->layout = false;
            return $this->render('authorize', [
                'model' => $model,
            ]);
        }
    }
public function actionAuthorize ( ) { $ model = new LoginForm ( ) ; if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) && $ model -> login ( ) ) { if ( $ this -> isOauthRequest ) { $ this -> finishAuthorization ( ) ; } else { return $ this -> goBack ( ) ; } } else { $ this -> layout = false ; return $ this -> render ( 'authorize' , [ 'model' => $ model , ] ) ; } }
Display login form, signup or something else.
AuthClients such as Google also may be used
Display login form signup or something else . AuthClients such as Google also may be used