Browse Source

Adjust code spacing

Raphael Schneeberger 5 years ago
parent
commit
c8833f0f9d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      web/login/index.php

+ 3 - 3
web/login/index.php

@@ -101,7 +101,7 @@ function authenticate_user(){
                 if ($data[$_POST['user']]['TWOFA'] != '') {
                 if ($data[$_POST['user']]['TWOFA'] != '') {
                    if (empty($_POST['twofa'])){
                    if (empty($_POST['twofa'])){
                        return false;
                        return false;
-                   }else{
+                   } else {
                         $v_twofa = $_POST['twofa'];
                         $v_twofa = $_POST['twofa'];
                         exec(HESTIA_CMD ."v-check-user-2fa ".$v_user." ".$v_twofa, $output, $return_var);
                         exec(HESTIA_CMD ."v-check-user-2fa ".$v_user." ".$v_twofa, $output, $return_var);
                         unset($output);
                         unset($output);
@@ -145,7 +145,7 @@ function authenticate_user(){
                 }
                 }
             }
             }
         }
         }
-    }else{
+    } else {
         unset($_POST);
         unset($_POST);
         unset($_GET);
         unset($_GET);
         unset($_SESSION);
         unset($_SESSION);
@@ -194,4 +194,4 @@ if (empty($_POST['user'])) {
 } else {
 } else {
     require_once('../templates/login.html');
     require_once('../templates/login.html');
 }
 }
-?>
+?>