Skip to content

Commit 2e0c4dc

Browse files
author
Kristan Kenney
committed
Throw error message to signed in user if account is deleted
1 parent fdf4862 commit 2e0c4dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/inc/main.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ function top_panel($user, $TAB) {
146146
$command = HESTIA_CMD."v-list-user ".escapeshellarg($user)." 'json'";
147147
exec ($command, $output, $return_var);
148148
if ( $return_var > 0 ) {
149-
header("Location: /logout/");
149+
echo "<b>ERROR: Unable to retrieve account details.</b><br>Please log in again.";
150+
session_destroy();
151+
header("Location: /login/");
150152
exit;
151153
}
152154
$panel = json_decode(implode('', $output), true);

0 commit comments

Comments
 (0)