diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 26966d88d8..7b55144de9 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -69,7 +69,7 @@ class plugin_database { //check if already authorized if (isset($_SESSION['authentication']['plugin']['database']) && $_SESSION['authentication']['plugin']['database']["authorized"]) { - return $_SESSION['authentication']['plugin']['database']; + return; } //show the authentication code view @@ -325,18 +325,6 @@ class plugin_database { } } - else { - //clear authentication session - if (empty($_SESSION['authentication']['methods']) || !is_array($_SESSION['authentication']['methods'])) { - unset($_SESSION['authentication']); - } - - // clear username - if (!empty($_REQUEST["password"])) { - unset($_SESSION['username'], $_REQUEST['username'], $_POST['username']); - unset($_SESSION['authentication']); - } - } //result array if ($valid_password) { @@ -361,12 +349,7 @@ class plugin_database { return $result ?? false; } - else { - unset($_SESSION['username'], $_REQUEST['username'], $_POST['username']); - unset($_SESSION['authentication']); - - } return; diff --git a/core/user_logs/user_logs.php b/core/user_logs/user_logs.php index 2e85658ee2..c589e72662 100644 --- a/core/user_logs/user_logs.php +++ b/core/user_logs/user_logs.php @@ -259,7 +259,12 @@ foreach ($user_logs as $row) { //check the session status $session_file = 'sess_'.$row['session_id']; - $session_status = (!empty($row['session_id']) && file_exists($session_path.'/'.$session_file)) ? 'active' : 'inactive'; + if (!empty($row['result']) && $row['result'] == 'success') { + $session_status = (!empty($row['session_id']) && file_exists($session_path.'/'.$session_file)) ? 'active' : 'inactive'; + } + elseif (!empty($row['result']) && $row['result'] == 'failure') { + $session_status = 'failed'; + } echo "\n"; if (permission_exists('user_log_delete')) { diff --git a/themes/default/css.php b/themes/default/css.php index d12e2c97b2..bdad2ce460 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -3432,7 +3432,7 @@ else { //default: white .list-status-active { width: 10px; height: 10px; - background-color: green; + background-color: #03C04A; border-radius: 50%; display: inline-block; } @@ -3445,6 +3445,14 @@ else { //default: white display: inline-block; } + .list-status-failed { + width: 10px; + height: 10px; + background-color: #ea4c46; + border-radius: 50%; + display: inline-block; + } + /* EDIT ********************************************************************************/ td.edit_delete_checkbox_all {