Browse Source

Merge pull request #1536 from hestiacp/fix/2021-01_login_as_admin_role_broken

Unset got removed during a merge
Raphael Schneeberger 5 years ago
parent
commit
7edd04b98e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      web/login/index.php

+ 1 - 0
web/login/index.php

@@ -92,6 +92,7 @@ function authenticate_user($user, $password, $twofa = ''){
                 // Get user speciefic parameters
                 exec (HESTIA_CMD . "v-list-user ".$v_user." json", $output, $return_var);
                 $data = json_decode(implode('', $output), true);
+                unset($output); 
                 if ($data[$user]['TWOFA'] != '') {
                         if(empty($_POST['twofa'])){
                             return false;