Browse Source

Replace spaces for token.

Raphael Schneeberger 7 years ago
parent
commit
b7982ea43d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      web/login/index.php

+ 1 - 0
web/login/index.php

@@ -89,6 +89,7 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
                 // Check if 2FA is active
                 if ($data[$_POST['user']]['TWOFA'] != '') {
                     if (isset($v_twofa)){
+                        $v_twofa = str_replace(' ', '', $v_twofa);
                         exec(HESTIA_CMD ."v-check-user-2fa ".$v_user." ".$v_twofa, $output, $return_var);
                         unset($output);
                         if ( $return_var > 0 ) {