diff --git a/config/vuefilemanager.php b/config/vuefilemanager.php index e3ab4450..70d4661e 100644 --- a/config/vuefilemanager.php +++ b/config/vuefilemanager.php @@ -5,6 +5,7 @@ return [ 'is_demo' => env('APP_DEMO', false), + 'is_prefilled_users' => env('IS_PREFILLED_USERS', false), 'is_setup_wizard_demo' => env('IS_SETUP_WIZARD_DEMO', false), 'is_setup_wizard_debug' => env('IS_SETUP_WIZARD_DEBUG', false), 'is_admin_vuefilemanager_bar' => env('IS_ADMIN_VUEFILEMANAGER_BAR', true), diff --git a/resources/js/views/Auth/SignIn.vue b/resources/js/views/Auth/SignIn.vue index 1e2e16c0..e767734d 100644 --- a/resources/js/views/Auth/SignIn.vue +++ b/resources/js/views/Auth/SignIn.vue @@ -459,7 +459,7 @@ export default { this.$scrollTop() this.$store.commit('PROCESSING_POPUP', undefined) - if (this.config.isDemo || this.config.isDev) { + if (this.config.isPrefilledUsers) { this.loginEmail = 'howdy@hi5ve.digital' this.loginPassword = 'vuefilemanager' } diff --git a/resources/js/views/Auth/SignUp.vue b/resources/js/views/Auth/SignUp.vue index 956d30c3..ff94caf7 100644 --- a/resources/js/views/Auth/SignUp.vue +++ b/resources/js/views/Auth/SignUp.vue @@ -278,7 +278,7 @@ export default { this.$router.push({name: 'Files'}) } - if (this.config.isDemo || this.config.isDev) { + if (this.config.isPrefilledUsers) { this.register = { name: 'John Doe', email: 'demo-' + Math.floor(Math.random() * 100000) + '@doe.com', diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index b541cdb3..0db573bb 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -85,6 +85,7 @@ statusCheck: {!! $config->debug->statusCheck !!}, isSetupWizardDemo: {{ $config->debug->isSetupWizardDemo }}, isSetupWizardDebug: {{ $config->debug->isSetupWizardDebug }}, + isPrefilledUsers: {{ $config->debug->isPrefilledUsers }}, // States isEmptyPlans: {{ $config->payments->isEmptyPlans }}, diff --git a/src/Domain/Settings/Actions/GetConfigAction.php b/src/Domain/Settings/Actions/GetConfigAction.php index e7d3220f..13338968 100644 --- a/src/Domain/Settings/Actions/GetConfigAction.php +++ b/src/Domain/Settings/Actions/GetConfigAction.php @@ -107,6 +107,7 @@ class GetConfigAction 'isSetupWizardDemo' => config('vuefilemanager.is_setup_wizard_demo') ? 1 : 0, 'isSetupWizardDebug' => config('vuefilemanager.is_setup_wizard_debug') ? 1 : 0, 'isAdminVueFileManagerBar' => config('vuefilemanager.is_admin_vuefilemanager_bar', 1) ? 1 : 0, + 'isPrefilledUsers' => config('vuefilemanager.is_prefilled_users') ? 1 : 0, 'statusCheck' => json_encode($serverInfo) ?? 'undefined', ], 'broadcasting' => [