diff --git a/include/security.php b/include/security.php index 35d5a5f5e..0300bc006 100644 --- a/include/security.php +++ b/include/security.php @@ -71,7 +71,7 @@ function authenticate_success($user_record, $channel = false, $login_initial = f // might want to log success here } - if ($_SESSION['2FA_REQUIRED'] && !$_SESSION['2FA_VERIFIED'] + if (!empty($_SESSION['2FA_REQUIRED']) && !$_SESSION['2FA_VERIFIED'] && !in_array(App::$module, ['totp_check', 'dav', 'cdav', 'api', 'addressbook', 'calendar'], true)) { goaway(z_root() . '/totp_check'); } diff --git a/src/Daemon/Cron_daily.php b/src/Daemon/Cron_daily.php index 478cc103a..cec841cb2 100644 --- a/src/Daemon/Cron_daily.php +++ b/src/Daemon/Cron_daily.php @@ -20,6 +20,9 @@ class Cron_daily implements DaemonInterface * */ + // rotate the symfony/doctrine logs - 1 level for now + rename ('var/log/dev.log', 'var/log/dev.log.1'); + // make sure our own site record is up to date Libzot::import_site(Libzot::site_info());