mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Add fix for MLC configs in config.ini (#1909)
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
from CTFd.utils import get_config
|
||||
from CTFd.utils import get_app_config, get_config
|
||||
|
||||
|
||||
def mlc():
|
||||
return get_config("oauth_client_id") and get_config("oauth_client_secret")
|
||||
admin_config = get_config("oauth_client_id") and get_config("oauth_client_secret")
|
||||
main_config = get_app_config("OAUTH_CLIENT_ID") and get_app_config(
|
||||
"OAUTH_CLIENT_SECRET"
|
||||
)
|
||||
return admin_config or main_config
|
||||
|
||||
|
||||
def mlc_registration():
|
||||
|
||||
Reference in New Issue
Block a user