Skip to content

Commit bea7ee2

Browse files
authored
Fixed an issue when 2fa was enabled user is unable to edit user settings (hestiacp#2316)
1 parent d3dec4d commit bea7ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/edit/user/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
}
136136

137137
// Enable twofa
138-
if ((!empty($_POST['v_twofa'])) && (empty($_SESSION['error_msg']))) {
138+
if ((!empty($_POST['v_twofa'])) && (empty($v_twofa)) && (empty($_SESSION['error_msg']))) {
139139
exec(HESTIA_CMD."v-add-user-2fa ".escapeshellarg($v_username), $output, $return_var);
140140
check_return_code($return_var, $output);
141141
unset($output);

0 commit comments

Comments
 (0)