We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdf4862 commit 2e0c4dcCopy full SHA for 2e0c4dc
web/inc/main.php
@@ -146,7 +146,9 @@ function top_panel($user, $TAB) {
146
$command = HESTIA_CMD."v-list-user ".escapeshellarg($user)." 'json'";
147
exec ($command, $output, $return_var);
148
if ( $return_var > 0 ) {
149
- header("Location: /logout/");
+ echo "<b>ERROR: Unable to retrieve account details.</b><br>Please log in again.";
150
+ session_destroy();
151
+ header("Location: /login/");
152
exit;
153
}
154
$panel = json_decode(implode('', $output), true);
0 commit comments