From 4f7d3d512744b8e199cdc0d462f750292141b525 Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 27 Apr 2022 12:37:45 +0200 Subject: [PATCH] show warning in case configured baseurl differs from current url #149 --- locales/en.json | 6 ++++-- locales/it.json | 3 ++- pages/Admin.vue | 2 +- pages/setup/Completed.vue | 18 +++++++++------- pages/setup/_db.vue | 43 +++++++++++++++++---------------------- 5 files changed, 37 insertions(+), 35 deletions(-) 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 @@