response->format = 'json'; Yii::$app->response->data = $checkLogin; return false; } return true; } }