diff --git a/app/Http/Controllers/SinglePageController.php b/app/Http/Controllers/SinglePageController.php index 5aa46faa..00eb686f 100644 --- a/app/Http/Controllers/SinglePageController.php +++ b/app/Http/Controllers/SinglePageController.php @@ -33,6 +33,7 @@ public function index() return view('landing')->with([ 'appSettings' => $this->settingService->all()->toJson(), 'lang' => App::currentLocale(), + 'isDemoApp' => config("2fauth.config.isDemoApp") ? 'true' : 'false', 'locales' => collect(config("2fauth.locales"))->toJson(), ]); } diff --git a/resources/js/app.js b/resources/js/app.js index bef5205c..fc807571 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -15,7 +15,8 @@ Vue.use(Notifications) const app = new Vue({ el: '#app', data: { - appSettings: window.appSettings + appSettings: window.appSettings, + isDemoApp: window.isDemoApp }, i18n, router, diff --git a/resources/js/components/App.vue b/resources/js/components/App.vue index fd988b44..6bc80086 100644 --- a/resources/js/components/App.vue +++ b/resources/js/components/App.vue @@ -1,7 +1,7 @@