From 0e4ddacf92850dde4278b2fb73efaa2106323f07 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Tue, 18 Jan 2022 10:23:32 +0100 Subject: [PATCH] [WebAuthn] cleanup --- data/web/inc/functions.inc.php | 2 +- data/web/inc/init_db.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 58d826239..3793fbb0f 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -1141,7 +1141,7 @@ function set_tfa($_data) { global $pdo; global $yubi; global $tfa; - $_data_log = $_data["tfa_method"]; + $_data_log = $_data; !isset($_data_log['confirm_password']) ?: $_data_log['confirm_password'] = '*'; $username = $_SESSION['mailcow_cc_username']; if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) { diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index b093cace2..3cab461ea 100644 --- a/data/web/inc/init_db.inc.php +++ b/data/web/inc/init_db.inc.php @@ -3,7 +3,7 @@ function init_db_schema() { try { global $pdo; - $db_version = "31102021_0621"; + $db_version = "18012022_1020"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));