fix(admin): secure routes, add real IP detection, SMTP header validation, and fix Next.js layout hydration mismatch
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m5s

This commit is contained in:
2026-06-01 23:16:03 +02:00
parent 6d27dc4cda
commit 6da8a85b1d
10 changed files with 1165 additions and 96 deletions

View File

@@ -19,11 +19,15 @@ from middleware import tier_quota as tier_quota_mod
from middleware.tier_quota import (
TierQuotaService,
QuotaResult,
FREE_TIER_DAILY_LIMIT,
FREE_TIER_MONTHLY_LIMIT as FREE_TIER_DAILY_LIMIT,
_memory_usage,
_seconds_until_midnight_utc,
)
def _seconds_until_midnight_utc():
from middleware.tier_quota import _seconds_until_next_month
return _seconds_until_next_month()
# Force in-memory backend and reset state so tests are isolated
@pytest.fixture(autouse=True)