Skip to content

Commit 7edd04b

Browse files
authored
Merge pull request hestiacp#1536 from hestiacp/fix/2021-01_login_as_admin_role_broken
Unset got removed during a merge
2 parents b1f288f + c6cb7a9 commit 7edd04b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/login/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function authenticate_user($user, $password, $twofa = ''){
9292
// Get user speciefic parameters
9393
exec (HESTIA_CMD . "v-list-user ".$v_user." json", $output, $return_var);
9494
$data = json_decode(implode('', $output), true);
95+
unset($output);
9596
if ($data[$user]['TWOFA'] != '') {
9697
if(empty($_POST['twofa'])){
9798
return false;

0 commit comments

Comments
 (0)