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.
1 parent d3dec4d commit bea7ee2Copy full SHA for bea7ee2
web/edit/user/index.php
@@ -135,7 +135,7 @@
135
}
136
137
// Enable twofa
138
- if ((!empty($_POST['v_twofa'])) && (empty($_SESSION['error_msg']))) {
+ if ((!empty($_POST['v_twofa'])) && (empty($v_twofa)) && (empty($_SESSION['error_msg']))) {
139
exec(HESTIA_CMD."v-add-user-2fa ".escapeshellarg($v_username), $output, $return_var);
140
check_return_code($return_var, $output);
141
unset($output);
0 commit comments