prefilling user refactoring

This commit is contained in:
Čarodej
2022-05-30 09:47:42 +02:00
parent 8dd4cf2be6
commit 17d4bcd888
5 changed files with 5 additions and 2 deletions

View File

@@ -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'
}

View File

@@ -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',

View File

@@ -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 }},