From f7642025611f9ee2494e6f150021d606b98f63c4 Mon Sep 17 00:00:00 2001 From: b1rdhous3 Date: Fri, 30 Aug 2019 20:04:02 +0200 Subject: [PATCH] WebUi PW Support (#9) * Initial WebUi Password Support * Small changes * Initial WebUi Password Support * Small changes * Basic WebUi Token support * added "removeStorage", added uiLock, updated login page * Small improvments * Small change --- assets/webconfig/content/login.html | 33 ++++++++++++++ assets/webconfig/i18n/de.json | 4 ++ assets/webconfig/i18n/en.json | 4 ++ assets/webconfig/index.html | 23 +++++++++- assets/webconfig/js/content_index.js | 66 +++++++++++++++++++++++++++- assets/webconfig/js/hyperion.js | 12 +++-- assets/webconfig/js/settings.js | 18 ++++++++ assets/webconfig/js/ui_utils.js | 22 +++++++++- 8 files changed, 175 insertions(+), 7 deletions(-) create mode 100644 assets/webconfig/content/login.html diff --git a/assets/webconfig/content/login.html b/assets/webconfig/content/login.html new file mode 100644 index 00000000..4f0eb232 --- /dev/null +++ b/assets/webconfig/content/login.html @@ -0,0 +1,33 @@ +
+
+
+
+
+

Login

+
+
+
+ + +
+
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/assets/webconfig/i18n/de.json b/assets/webconfig/i18n/de.json index c06d8733..690cc84b 100644 --- a/assets/webconfig/i18n/de.json +++ b/assets/webconfig/i18n/de.json @@ -76,6 +76,8 @@ "dashboard_alert_message_confsave_success" : "Deine Hyperion Konfiguration wurde erfolgreich gespeichert. Deine Änderungen sind somit übernommen.", "dashboard_message_global_setting_t": "Instanzunabhängige Einstellung", "dashboard_message_global_setting": "Die Einstellungen auf dieser Seite sind instanzunabhängig. Änderungen werden global übernommen.", + "dashboard_message_default_password_t": "WebUi Standardpasswort gesetzt", + "dashboard_message_default_password": "Das Standardpasswort der WebUi ist gesetzt. Wir empfehlen dringend, dieses zu ändern.", "dashboard_active_instance": "Ausgewählte Instanz", "main_menu_dashboard_token": "Dashboard", "main_menu_configuration_token": "Konfiguration", @@ -313,6 +315,8 @@ "infoDialog_effconf_created_text": "Der Effekt \"$1\" wurde erfolgreich erstellt!", "InfoDialog_lang_title": "Spracheinstellung", "InfoDialog_lang_text": "Sollte dir die Vorauswahl der automatischen Spracherkennung nicht gefallen, kannst du die Sprache hier manuell festlegen.", + "InfoDialog_changePassword_title" : "Change Password", + "InfoDialog_changePassword_success" : "Passwort erfolgreich gespeichert!", "InfoDialog_access_title": "Einstellungsstufe", "InfoDialog_access_text": "Je höher die Stufe je mehr Einstellungen und Funktionen stehen zur Verfügung. Empfohlen ist \"Standard\".", "InfoDialog_nowrite_title": "Fehler beim Schreibzugriff!", diff --git a/assets/webconfig/i18n/en.json b/assets/webconfig/i18n/en.json index 495e9364..ecf3ef71 100644 --- a/assets/webconfig/i18n/en.json +++ b/assets/webconfig/i18n/en.json @@ -75,6 +75,8 @@ "dashboard_alert_message_confsave_success" : "Your Hyperion configuration has been saved successfully. Your changes are now active.", "dashboard_message_global_setting_t": "Instance independent setting", "dashboard_message_global_setting": "The settings on this page are not depending on a specific instance. Changes will be stored globally for all instances.", + "dashboard_message_default_password_t": "WebUi default password is set", + "dashboard_message_default_password": "The default password for the WebUi is set. We strongly recommend to change this.", "dashboard_active_instance": "Selected instance", "main_menu_dashboard_token" : "Dashboard", "main_menu_configuration_token" : "Configuration", @@ -313,6 +315,8 @@ "InfoDialog_lang_title" : "Language setting", "InfoDialog_lang_text" : "If you don't like the result of the automatic language detection you could overwrite it here.", "InfoDialog_access_title" : "Settings level", + "InfoDialog_changePassword_title" : "Change Password", + "InfoDialog_changePassword_success" : "Password successfully saved!", "InfoDialog_access_text" : "Depending on settings level you could adjust more options or get access to more features. Recommended is the \"Default\" level.", "InfoDialog_nowrite_title" : "write permission error!", "InfoDialog_nowrite_text" : "Hyperion can't write to your current loaded configuration file. Please repair the file permissions to proceed.", diff --git a/assets/webconfig/index.html b/assets/webconfig/index.html index 4e0b1569..2edcc6ee 100644 --- a/assets/webconfig/index.html +++ b/assets/webconfig/index.html @@ -92,7 +92,7 @@ - @@ -228,6 +243,12 @@ +