diff --git a/locales/en.json b/locales/en.json
index 9a9305d1..fab32004 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -230,7 +230,8 @@
"smtp_test_success": "A test email is sent to {admin_email}, please check your inbox",
"smtp_test_button": "Send a test email",
"admin_email": "Admin e-mail",
- "widget": "Widget"
+ "widget": "Widget",
+ "wrong_domain_warning": "The baseurl configured in config.json ({baseurl}) differs from the one you're visiting ({url})"
},
"auth": {
"not_confirmed": "Not confirmed yet…",
@@ -277,6 +278,7 @@
"completed": "Setup completed",
"completed_description": "
You can now login with the following user:
User: {email}
Password: {password}
",
"copy_password_dialog": "Yes, you have to copy the password!",
- "start": "Start"
+ "start": "Start",
+ "https_warning": "You're visiting from HTTP, remember to change baseurl in config.json if you switch to HTTPS!"
}
}
diff --git a/locales/it.json b/locales/it.json
index b23ca228..e63155d9 100644
--- a/locales/it.json
+++ b/locales/it.json
@@ -277,6 +277,7 @@
"completed": "Setup completato",
"completed_description": "Puoi entrare con le seguenti credenziali:
Utente: {email}
Password: {password}
",
"copy_password_dialog": "Sì, devi copiare la password!",
- "start": "Inizia"
+ "start": "Inizia",
+ "https_warning": "Stai visitando il setup da HTTP, ricorda di cambiare il baseurl nel config.json quando passarai ad HTTPS!"
}
}
diff --git a/pages/Admin.vue b/pages/Admin.vue
index 8cff27c2..1fc91f99 100644
--- a/pages/Admin.vue
+++ b/pages/Admin.vue
@@ -1,7 +1,7 @@
v-container.container.pa-0.pa-md-3
v-card
- v-alert(v-if='url!==settings.baseurl' outlined type='warning' color='red' show-icon :icon='mdiAlert') {{$t('admin.wrong_domain_warning')}}
+ v-alert(v-if='url!==settings.baseurl' outlined type='warning' color='red' show-icon :icon='mdiAlert' v-html="$t('admin.wrong_domain_warning', { url, baseurl: settings.baseurl })")
v-tabs(v-model='selectedTab' show-arrows)
//- SETTINGS
diff --git a/pages/setup/Completed.vue b/pages/setup/Completed.vue
index 35e38379..3773dd14 100644
--- a/pages/setup/Completed.vue
+++ b/pages/setup/Completed.vue
@@ -1,16 +1,20 @@
- v-container
- v-card-title.d-block.text-h5.text-center(v-text="$t('setup.completed')")
- v-card-text(v-html="$t('setup.completed_description', user)")
- v-alert.mb-3.mt-1(outlined type='warning' color='red' show-icon :icon='mdiAlert') {{$t('setup.copy_password_dialog')}}
- v-card-actions
- v-btn(text @click='next' color='primary' :loading='loading' :disabled='loading') {{$t('setup.start')}}
- v-icon(v-text='mdiArrowRight')
+v-container
+ v-card-title.d-block.text-h5.text-center(v-text="$t('setup.completed')")
+ v-card-text(v-html="$t('setup.completed_description', user)")
+ v-alert.mb-3.mt-1(v-if='isHttp' outlined type='warning' color='red' show-icon :icon='mdiAlert') {{$t('setup.https_warning')}}
+ v-alert.mb-3.mt-1(outlined type='warning' color='red' show-icon :icon='mdiAlert') {{$t('setup.copy_password_dialog')}}
+ v-card-actions
+ v-btn(text @click='next' color='primary' :loading='loading' :disabled='loading') {{$t('setup.start')}}
+ v-icon(v-text='mdiArrowRight')