Skip to content

Commit fae36e0

Browse files
committed
feat: Add twofactor applications to most of the presets
All presets which are unlikely to have SSO in place should enable twofactor applications. Signed-off-by: Côme Chilliet <[email protected]>
1 parent ed6bb52 commit fae36e0

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

lib/private/Config/PresetManager.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,22 @@ public function retrieveLexiconPresetApps(): array {
233233
*/
234234
private function getPresetApps(Preset $preset): array {
235235
return match ($preset) {
236-
Preset::CLUB, Preset::FAMILY, Preset::SCHOOL, Preset::UNIVERSITY, Preset::SMALL, Preset::MEDIUM, Preset::LARGE => ['enabled' => ['user_status', 'guests'], 'disabled' => []],
237-
Preset::SHARED => ['enabled' => ['external'], 'disabled' => ['user_status']],
236+
Preset::CLUB, Preset::FAMILY, Preset::SCHOOL, Preset::SMALL, Preset::MEDIUM
237+
=> [
238+
'enabled' => ['user_status','guests','twofactor_backupcodes','twofactor_totp','twofactor_webauthn'],
239+
'disabled' => []],
240+
Preset::UNIVERSITY, Preset::LARGE
241+
=> [
242+
'enabled' => ['user_status','guests'],
243+
'disabled' => []],
244+
Preset::SHARED
245+
=> [
246+
'enabled' => ['external','twofactor_backupcodes','twofactor_totp','twofactor_webauthn'],
247+
'disabled' => ['user_status']],
248+
Preset::PRIVATE
249+
=> [
250+
'enabled' => ['twofactor_backupcodes','twofactor_totp','twofactor_webauthn'],
251+
'disabled' => []],
238252
default => ['enabled' => [], 'disabled' => []],
239253
};
240254
}

0 commit comments

Comments
 (0)