Explorar o código

feat: support empty well known url

wzxjohn hai 10 meses
pai
achega
1a8fd61a98
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/src/components/SystemSetting.js

+ 1 - 1
web/src/components/SystemSetting.js

@@ -374,7 +374,7 @@ const SystemSetting = () => {
   };
 
   const submitOIDCSettings = async () => {
-    if (inputs['oidc.well_known'] !== '') {
+    if (inputs['oidc.well_known'] && inputs['oidc.well_known'] !== '') {
       if (
         !inputs['oidc.well_known'].startsWith('http://') &&
         !inputs['oidc.well_known'].startsWith('https://')