mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
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 <come.chilliet@nextcloud.com>
This commit is contained in:
parent
ed6bb52821
commit
fae36e04ea
1 changed files with 16 additions and 2 deletions
|
|
@ -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' => []],
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue