diff --git a/src/backend/base/langflow/services/settings/auth.py b/src/backend/base/langflow/services/settings/auth.py index 91cb8dcaf..8ff19e725 100644 --- a/src/backend/base/langflow/services/settings/auth.py +++ b/src/backend/base/langflow/services/settings/auth.py @@ -27,9 +27,12 @@ class AuthSettings(BaseSettings): API_KEY_ALGORITHM: str = "HS256" API_V1_STR: str = "/api/v1" - # If AUTO_LOGIN = True - # > The application does not request login and logs in automatically as a super user. AUTO_LOGIN: bool = True + """If True, the application will attempt to log in automatically as a super user.""" + skip_auth_auto_login: bool = True + """If True, the application will skip authentication when AUTO_LOGIN is enabled. + This will be removed in v1.6""" + NEW_USER_IS_ACTIVE: bool = False SUPERUSER: str = DEFAULT_SUPERUSER SUPERUSER_PASSWORD: str = DEFAULT_SUPERUSER_PASSWORD @@ -50,10 +53,6 @@ class AuthSettings(BaseSettings): COOKIE_DOMAIN: str | None = None """The domain attribute of the cookies. If None, the domain is not set.""" - skip_auth_auto_login: bool = True - """If True, the application will skip the authentication auto login, set this to False to revert to pre-v1.5 - behavior. This will be removed in v1.6""" - pwd_context: CryptContext = CryptContext(schemes=["bcrypt"], deprecated="auto") model_config = SettingsConfigDict(validate_assignment=True, extra="ignore", env_prefix="LANGFLOW_")