mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Suppress default password warning (#830)
This commit is contained in:
parent
5eb45e857f
commit
1744f6d07a
@ -84,6 +84,7 @@
|
|||||||
"dashboard_message_global_setting": "Die Einstellungen auf dieser Seite sind instanzunabhängig. Änderungen werden global übernommen.",
|
"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_t": "WebUi Standardpasswort gesetzt",
|
||||||
"dashboard_message_default_password": "Das Standardpasswort der WebUi ist gesetzt. Wir empfehlen dringend, dieses zu ändern.",
|
"dashboard_message_default_password": "Das Standardpasswort der WebUi ist gesetzt. Wir empfehlen dringend, dieses zu ändern.",
|
||||||
|
"dashboard_message_do_not_show_again": "Diese Meldung nicht mehr anzeigen",
|
||||||
"dashboard_active_instance": "Ausgewählte Instanz",
|
"dashboard_active_instance": "Ausgewählte Instanz",
|
||||||
"main_menu_dashboard_token": "Dashboard",
|
"main_menu_dashboard_token": "Dashboard",
|
||||||
"main_menu_configuration_token": "Konfiguration",
|
"main_menu_configuration_token": "Konfiguration",
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
"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_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_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_message_default_password": "The default password for the WebUi is set. We strongly recommend to change this.",
|
||||||
|
"dashboard_message_do_not_show_again": "Do not show this message again",
|
||||||
"dashboard_active_instance": "Selected instance",
|
"dashboard_active_instance": "Selected instance",
|
||||||
"main_menu_dashboard_token" : "Dashboard",
|
"main_menu_dashboard_token" : "Dashboard",
|
||||||
"main_menu_configuration_token" : "Configuration",
|
"main_menu_configuration_token" : "Configuration",
|
||||||
|
@ -152,8 +152,13 @@ $(document).ready(function () {
|
|||||||
$("#main-nav").removeAttr('style')
|
$("#main-nav").removeAttr('style')
|
||||||
$("#top-navbar").removeAttr('style')
|
$("#top-navbar").removeAttr('style')
|
||||||
|
|
||||||
if (window.defaultPasswordIsSet === true)
|
if (window.defaultPasswordIsSet === true && getStorage("suppressDefaultPwWarning") !== "true" )
|
||||||
showNotification('warning', $.i18n('dashboard_message_default_password'), $.i18n('dashboard_message_default_password_t'), '<a style="cursor:pointer" onClick="changePassword()"> ' + $.i18n('InfoDialog_changePassword_title') + '</a>')
|
{
|
||||||
|
var supprPwWarnCheckbox = '<div class="text-right">'+$.i18n('dashboard_message_do_not_show_again')
|
||||||
|
+ ' <input id="chk_suppressDefaultPw" type="checkbox" onChange="suppressDefaultPwWarning()"> </div>'
|
||||||
|
showNotification('warning', $.i18n('dashboard_message_default_password'), $.i18n('dashboard_message_default_password_t'), '<a style="cursor:pointer" onClick="changePassword()">'
|
||||||
|
+ $.i18n('InfoDialog_changePassword_title') + '</a>' + supprPwWarnCheckbox)
|
||||||
|
}
|
||||||
else
|
else
|
||||||
//if logged on and pw != default show option to lock ui
|
//if logged on and pw != default show option to lock ui
|
||||||
$("#btn_lock_ui").removeAttr('style')
|
$("#btn_lock_ui").removeAttr('style')
|
||||||
@ -308,6 +313,14 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function suppressDefaultPwWarning(){
|
||||||
|
|
||||||
|
if (document.getElementById('chk_suppressDefaultPw').checked)
|
||||||
|
setStorage("suppressDefaultPwWarning", "true");
|
||||||
|
else
|
||||||
|
setStorage("suppressDefaultPwWarning", "false");
|
||||||
|
}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var sidebar = $('#side-menu'); // cache sidebar to a variable for performance
|
var sidebar = $('#side-menu'); // cache sidebar to a variable for performance
|
||||||
sidebar.delegate('a.inactive', 'click', function () {
|
sidebar.delegate('a.inactive', 'click', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user