fix: 修复 ENABLE_REDIS_SESSION 变量名不匹配导致登录500 #58

Merged
xiaoxia merged 1 commits from fix/env-var-name-mismatch into develop 2026-06-27 19:52:36 +08:00
+1 -1
View File
@@ -152,7 +152,7 @@ def get_workspace_invitation_repository(
def get_auth_session_store() -> SessionStore | NoopSessionStore:
"""Provide the session store based on configuration."""
if not settings.ENABLE_REDIS_SESSION:
if not settings.ENABLE_REDIS_SESSIONS:
return NoopSessionStore()
return SessionStore(redis_client=redis.from_url(settings.REDIS_URL, decode_responses=True))