lib/controllers/AppController.php
public function actionLogin()
    {
        $this->params['model'] = $model = new LoginForm();
        if ($model->load($_POST) && $model->login()) {
            //Yii::$app->response->redirect = Yii::$app->getUser()->getReturnUrl();
            Yii::$app->session->setFlash('delayed-instructions', json_encode(['pauseTimer' => false]));

            return $this->goBack();
        } else {
            Yii::$app->response->task = 'dialog';
            Yii::$app->response->taskOptions = ['title' => 'Log In'];
            Yii::$app->response->view = 'login';
            Yii::$app->response->baseInstructions['pauseTimer'] = true;
        }
    }
public function actionLogin()
    {
        $this->params['model'] = $model = new LoginForm();
        if ($model->load($_POST) && $model->login()) {
            //Yii::$app->response->redirect = Yii::$app->getUser()->getReturnUrl();
            Yii::$app->session->setFlash('delayed-instructions', json_encode(['pauseTimer' => false]));

            return $this->goBack();
        } else {
            Yii::$app->response->task = 'dialog';
            Yii::$app->response->taskOptions = ['title' => 'Log In'];
            Yii::$app->response->view = 'login';
            Yii::$app->response->baseInstructions['pauseTimer'] = true;
        }
    }
[[@doctodo method_description:actionLogin]].

@return [[@doctodo return_type:actionLogin]] [[@doctodo return_description:actionLogin]]