()
| 40 | |
| 41 | |
| 42 | def is_default_security_config_active() -> bool: |
| 43 | if TEMP_DISABLE_SETUP_PASSWORD_ENFORCE: |
| 44 | return False |
| 45 | |
| 46 | settings = get_settings() |
| 47 | password = _safe_value(settings.webui_access_password.get_secret_value()) |
| 48 | secret_key = _safe_value(settings.webui_secret_key.get_secret_value()) |
| 49 | return ( |
| 50 | not password |
| 51 | or password == DEFAULT_WEBUI_ACCESS_PASSWORD |
| 52 | or not secret_key |
| 53 | or secret_key == DEFAULT_WEBUI_SECRET_KEY |
| 54 | ) |
| 55 | |
| 56 | |
| 57 | def build_setup_password_redirect() -> RedirectResponse: |
no test coverage detected