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 = email, send a code there for confirmation
|
||||||
if ($type == 1) {
|
if ($type == 1) {
|
||||||
$code = $tfa->getCode($tfa->createSecret());
|
$code = $tfa->getCode($data);
|
||||||
$_mailerror = false;
|
$_mailerror = false;
|
||||||
$mailerr_msg = "";
|
$mailerr_msg = "";
|
||||||
$replace_arr = [
|
$replace_arr = [
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ use Froxlor\UI\Panel\UI;
|
|||||||
use Froxlor\UI\Response;
|
use Froxlor\UI\Response;
|
||||||
use Froxlor\Validate\Validate;
|
use Froxlor\Validate\Validate;
|
||||||
use Froxlor\Language;
|
use Froxlor\Language;
|
||||||
|
use Froxlor\System\Cronjob;
|
||||||
|
use Froxlor\Cron\TaskId;
|
||||||
|
|
||||||
if ($action == 'logout') {
|
if ($action == 'logout') {
|
||||||
$log->logAction(FroxlorLogger::USR_ACTION, LOG_NOTICE, 'logged out');
|
$log->logAction(FroxlorLogger::USR_ACTION, LOG_NOTICE, 'logged out');
|
||||||
@@ -198,6 +200,7 @@ if ($page == 'overview') {
|
|||||||
"username" => $userinfo['loginname']
|
"username" => $userinfo['loginname']
|
||||||
];
|
];
|
||||||
Database::pexecute($stmt, $params);
|
Database::pexecute($stmt, $params);
|
||||||
|
Cronjob::inserttask(TaskId::REBUILD_VHOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
Response::redirectTo($filename);
|
Response::redirectTo($filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user