diff --git a/index.php b/index.php
index dd3f2673..3ee8b942 100644
--- a/index.php
+++ b/index.php
@@ -84,7 +84,8 @@ if ($action == '2fa_entercode') {
// verify code set to user's data_2fa field
$sel_stmt = Database::prepare("SELECT `data_2fa` FROM " . $table . " WHERE `" . $field . "` = :uid");
$userinfo_code = Database::pexecute_first($sel_stmt, ['uid' => $uid]);
- $result = $tfa->verifyCode($userinfo_code['data_2fa'], $code);
+ // 60sec discrepancy (possible slow email delivery)
+ $result = $tfa->verifyCode($userinfo_code['data_2fa'], $code, 60);
} else {
$result = $tfa->verifyCode($_SESSION['secret_2fa'], $code, 3);
}
diff --git a/lib/Froxlor/Database/Manager/DbManagerMySQL.php b/lib/Froxlor/Database/Manager/DbManagerMySQL.php
index a73a1be4..7ba1a43d 100644
--- a/lib/Froxlor/Database/Manager/DbManagerMySQL.php
+++ b/lib/Froxlor/Database/Manager/DbManagerMySQL.php
@@ -187,7 +187,7 @@ class DbManagerMySQL
*/
public function deleteUser(string $username, string $host)
{
- if (Database::getAttribute(PDO::ATTR_SERVER_VERSION) < '5.0.2') {
+ if (version_compare(Database::getAttribute(PDO::ATTR_SERVER_VERSION), '5.0.2', '<')) {
// Revoke privileges (only required for MySQL 4.1.2 - 5.0.1)
$stmt = Database::prepare("REVOKE ALL PRIVILEGES ON * . * FROM `" . $username . "`@`" . $host . "`");
Database::pexecute($stmt);
diff --git a/lib/configfiles/bookworm.xml b/lib/configfiles/bookworm.xml
index d0d2697b..153ddd2d 100644
--- a/lib/configfiles/bookworm.xml
+++ b/lib/configfiles/bookworm.xml
@@ -3174,7 +3174,7 @@ no
+ chmod="0640" backup="true">
+ chmod="0640" backup="true">
+ chmod="0640" backup="true">
+ chmod="0640" backup="true">
+ chmod="0640" backup="true">