From fae36e04ea6196b3444b880d2bc1e77482003903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 22 Jan 2026 17:33:48 +0100 Subject: [PATCH] feat: Add twofactor applications to most of the presets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All presets which are unlikely to have SSO in place should enable twofactor applications. Signed-off-by: Côme Chilliet --- lib/private/Config/PresetManager.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/private/Config/PresetManager.php b/lib/private/Config/PresetManager.php index 67033a0db9c..e35f193b2ca 100644 --- a/lib/private/Config/PresetManager.php +++ b/lib/private/Config/PresetManager.php @@ -233,8 +233,22 @@ class PresetManager { */ private function getPresetApps(Preset $preset): array { return match ($preset) { - Preset::CLUB, Preset::FAMILY, Preset::SCHOOL, Preset::UNIVERSITY, Preset::SMALL, Preset::MEDIUM, Preset::LARGE => ['enabled' => ['user_status', 'guests'], 'disabled' => []], - Preset::SHARED => ['enabled' => ['external'], 'disabled' => ['user_status']], + Preset::CLUB, Preset::FAMILY, Preset::SCHOOL, Preset::SMALL, Preset::MEDIUM + => [ + 'enabled' => ['user_status','guests','twofactor_backupcodes','twofactor_totp','twofactor_webauthn'], + 'disabled' => []], + Preset::UNIVERSITY, Preset::LARGE + => [ + 'enabled' => ['user_status','guests'], + 'disabled' => []], + Preset::SHARED + => [ + 'enabled' => ['external','twofactor_backupcodes','twofactor_totp','twofactor_webauthn'], + 'disabled' => ['user_status']], + Preset::PRIVATE + => [ + 'enabled' => ['twofactor_backupcodes','twofactor_totp','twofactor_webauthn'], + 'disabled' => []], default => ['enabled' => [], 'disabled' => []], }; }