MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / is_config_initialized

Function is_config_initialized

core/security.py:31–35  ·  view source on GitHub ↗
(config: dict[str, Any])

Source from the content-addressed store, hash-verified

29
30
31def is_config_initialized(config: dict[str, Any]) -> bool:
32 admin_token = str(config.get("admin_token") or "")
33 if not admin_token:
34 return False
35 return not verify_password(LEGACY_DEFAULT_ADMIN_TOKEN, admin_token)
36
37
38def prepare_security_config(config: dict[str, Any]) -> SecurityConfigResult:

Calls 1

verify_passwordFunction · 0.90