diff --git a/2fa.php b/2fa.php index 3155db27..b90cc0d2 100644 --- a/2fa.php +++ b/2fa.php @@ -76,7 +76,7 @@ if ($action == 'delete') { // if type = email, send a code there for confirmation if ($type == 1) { - $code = $tfa->getCode($tfa->createSecret()); + $code = $tfa->getCode($data); $_mailerror = false; $mailerr_msg = ""; $replace_arr = [ diff --git a/customer_index.php b/customer_index.php index 9ec5f27c..c4a1ea80 100644 --- a/customer_index.php +++ b/customer_index.php @@ -37,6 +37,8 @@ use Froxlor\UI\Panel\UI; use Froxlor\UI\Response; use Froxlor\Validate\Validate; use Froxlor\Language; +use Froxlor\System\Cronjob; +use Froxlor\Cron\TaskId; if ($action == 'logout') { $log->logAction(FroxlorLogger::USR_ACTION, LOG_NOTICE, 'logged out'); @@ -198,6 +200,7 @@ if ($page == 'overview') { "username" => $userinfo['loginname'] ]; Database::pexecute($stmt, $params); + Cronjob::inserttask(TaskId::REBUILD_VHOST); } Response::redirectTo($filename);