fix email 2fa; insert task to rebuild vhosts after customer changes password for statistics-page

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-26 13:00:34 +01:00
parent c696542cf5
commit 07814f8e46
2 changed files with 4 additions and 1 deletions

View File

@@ -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 = [

View File

@@ -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);