From c9d20f361651dc2a9c8bb52b25e34755ff461a91 Mon Sep 17 00:00:00 2001 From: OnEvent Date: Thu, 8 Aug 2024 18:20:13 +0800 Subject: [PATCH] feat: add the ui for "allow the OAuth 2.0 to login" - update SystemSetting.js --- web/berry/src/views/Setting/component/SystemSetting.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/berry/src/views/Setting/component/SystemSetting.js b/web/berry/src/views/Setting/component/SystemSetting.js index 417f4fc9..f868006b 100644 --- a/web/berry/src/views/Setting/component/SystemSetting.js +++ b/web/berry/src/views/Setting/component/SystemSetting.js @@ -99,6 +99,7 @@ const SystemSetting = () => { case 'TurnstileCheckEnabled': case 'EmailDomainRestrictionEnabled': case 'RegisterEnabled': + case 'OAuth2Enabled': value = inputs[key] === 'true' ? 'false' : 'true'; break; default: @@ -323,6 +324,12 @@ const SystemSetting = () => { control={} /> + + } + /> +