refactor(captcha): load answer from env dynamically
Build and Push (main) / build (push) Successful in 54s
Build and Push (dev) / build (push) Successful in 50s

This commit is contained in:
2026-08-08 06:26:56 +05:00
parent cb83fc1608
commit f5fd0187ec
2 changed files with 12 additions and 4 deletions
+5
View File
@@ -63,6 +63,11 @@ class Config:
except FileNotFoundError:
return default_captcha
def _load_captcha_answer(self):
"""Load captcha answer from environment variable (supports live reload)"""
load_dotenv(override=True) # Reload .env file
return os.getenv(key="CAPTCHA_ANSWER", default=None)
def _load(self):
load_dotenv()