Fix cookie configuration and update destinataer workflow

- Fixed empty cookie name issue in production by improving fallback logic
- Changed 'Neue Förderung' to 'Neue Unterstützung' in destinataer detail page
- Updated icon from fa-gift to fa-heart for better UX
- Workflow now correctly uses unterstuetzung_create with destinataer pre-population

Resolves CookieError: Illegal key '' in production environment
This commit is contained in:
Stiftung Development
2025-09-21 22:52:55 +02:00
parent 6282d1a02f
commit 36c66a803c
2 changed files with 4 additions and 4 deletions

View File

@@ -121,8 +121,8 @@ GRAMPS_USERNAME = os.environ.get("GRAMPS_USERNAME", "")
GRAMPS_PASSWORD = os.environ.get("GRAMPS_PASSWORD", "")
# Session Configuration
SESSION_COOKIE_NAME = os.environ.get("SESSION_COOKIE_NAME", "stiftung_sessionid")
CSRF_COOKIE_NAME = os.environ.get("CSRF_COOKIE_NAME", "stiftung_csrftoken")
SESSION_COOKIE_NAME = os.environ.get("SESSION_COOKIE_NAME") or "stiftung_sessionid"
CSRF_COOKIE_NAME = os.environ.get("CSRF_COOKIE_NAME") or "stiftung_csrftoken"
# HTTPS Security Settings (production)
if not DEBUG: