From e4001e67ef4d1d52b803e90674f52c5fa5846e6d Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Thu, 4 Jan 2024 02:17:27 +0000 Subject: [PATCH] add language selector to login (#5648) * add language selector to login * add showLanguageSelect to pick top or bottom boxe --- meshcentral-config-schema.json | 12 +++++++++++- views/login2.handlebars | 27 +++++++++++++++++++++++++++ webserver.js | 4 +++- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index b8956a70..f9dc51b2 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -3112,6 +3112,16 @@ ] } } + }, + "showLanguageSelect": { + "type": "string", + "default": null, + "description": "Show Language Selector on Login Page, \"top\" inside Login Box or \"bottom\" at Bottom of Page", + "enum": [ + null, + "top", + "bottom" + ] } } } @@ -3483,4 +3493,4 @@ } } } -} +} \ No newline at end of file diff --git a/views/login2.handlebars b/views/login2.handlebars index 9b0e8944..a7822eba 100644 --- a/views/login2.handlebars +++ b/views/login2.handlebars @@ -87,6 +87,7 @@ +