We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cd0fa5 + c8833f0 commit 06a1ff4Copy full SHA for 06a1ff4
web/login/index.php
@@ -98,7 +98,7 @@ function authenticate_user(){
98
if ($data[$_POST['user']]['TWOFA'] != '') {
99
if (empty($_POST['twofa'])){
100
return false;
101
- }else{
+ } else {
102
$v_twofa = $_POST['twofa'];
103
exec(HESTIA_CMD ."v-check-user-2fa ".$v_user." ".$v_twofa, $output, $return_var);
104
unset($output);
@@ -148,6 +148,13 @@ function authenticate_user(){
148
}
149
150
151
152
+ unset($_POST);
153
+ unset($_GET);
154
+ unset($_SESSION);
155
+ session_destroy();
156
+ session_start();
157
+ return false;
158
159
160
@@ -190,4 +197,4 @@ function authenticate_user(){
190
197
} else {
191
198
require_once('../templates/login.html');
192
199
193
-?>
200
+?>
0 commit comments