from CTFd.utils import get_config


def mlc():
    return get_config("oauth_client_id") and get_config("oauth_client_secret")


def mlc_registration():
    v = get_config("registration_visibility")
    return v == "mlc"

@@ -15,16 +15,32 @@
 s import
+ get_app_config,
  get_con
@@ -60,22 +60,30 @@
 ():%0A    
-return
+admin_config =
  get_con
@@ -143,16 +143,163 @@
 ecret%22)%0A
+    main_config = get_app_config(%22OAUTH_CLIENT_ID%22) and get_app_config(%0A        %22OAUTH_CLIENT_SECRET%22%0A    )%0A    return admin_config or main_config%0A
 %0A%0Adef ml

Add fix for MLC configs in config.ini (#1909)