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:
2
2fa.php
2
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 = [
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user