Skip to content

Commit 46407ee

Browse files
author
Kristan Kenney
committed
Drop routine to auto-elevate Administrators
1 parent 3bb6e2b commit 46407ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/login/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ function authenticate_user($user, $password, $twofa = ''){
121121
}
122122

123123
if ($data[$user]['ROLE'] == 'admin'){
124-
exec (HESTIA_CMD . "v-list-user admin json", $output, $return_var);
125-
$data = json_decode(implode('', $output), true);
126-
unset($output);
124+
// exec (HESTIA_CMD . "v-list-user admin json", $output, $return_var);
125+
// $data = json_decode(implode('', $output), true);
126+
// unset($output);
127127
}
128128
// Define session user
129129
$_SESSION['user'] = key($data);

0 commit comments

Comments
 (0)