|
|
@@ -21,7 +21,9 @@ class MainController extends PublicController
|
|
|
public function actionIndex()
|
|
|
{
|
|
|
$host = Yii::$app->request->getHostInfo();
|
|
|
- return $this->renderPartial('index', ['host' => $host]);
|
|
|
+ $fullUrl = Yii::$app->request->url;
|
|
|
+ $token = strpos($fullUrl,'token') === false ? '' : 'hasToken';
|
|
|
+ return $this->renderPartial('index', ['host' => $host,'token'=>$token]);
|
|
|
}
|
|
|
|
|
|
public function actionJwt()
|