From 67d9c6daa69c2e2bbafbe02d84e480206eef9034 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 12 Jan 2022 17:16:02 +0100 Subject: [PATCH] Added message --- pandora_console/general/login_page.php | 46 ++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index d4f9fe29f7..6d7a9864ce 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -326,12 +326,34 @@ switch ($login_screen) { } if ($config['enterprise_installed']) { - if ($config['reset_pass_option'] && (!$config['centralized_management'])) { + if ($config['reset_pass_option']) { $reset_pass_link = 'reset_pass.php'; // Reset password link. echo '
'; - echo ''.__('Forgot your password?'); - echo ''; + if ((!$config['centralized_management'])) { + echo ''.__('Forgot your password?'); + echo ''; + } else { + echo ''.__('Forgot your password?'); + echo ''; + + echo ''; + } + echo '
'; } } @@ -826,5 +848,23 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' }); }); + function centralized_mode_reset_dialog() { + $("#centralized_mode_reset_dialog").dialog({ + resizable: true, + draggable: true, + modal: true, + height: 220, + width: 528, + overlay: { + opacity: 0.5, + background: "black" + } + }); + + $("#submit-centralized_mode_reset_button").click (function () { + $("#centralized_mode_reset_dialog").dialog('close'); + }); + } + /* ]]> */