diff --git a/app/config.py b/app/config.py index 4dc11beb..be424cf2 100644 --- a/app/config.py +++ b/app/config.py @@ -374,3 +374,6 @@ except Exception: ALIAS_LIMIT = os.environ.get("ALIAS_LIMIT") or "100/day;50/hour;5/minute" ENABLE_SPAM_ASSASSIN = "ENABLE_SPAM_ASSASSIN" in os.environ + +HIBP_SCAN_INTERVAL_DAYS = os.environ.get("HIBP_SCAN_INTERVAL_DAYS") or 7 +HIBP_API_KEYS = sl_getenv("HIBP_API_KEYS", list) or [] \ No newline at end of file diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index e3a8d1a4..dd3cf41e 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -202,6 +202,13 @@ {% endif %} + + {% if alias.hibp_breaches | length > 0 %} + + + + {% endif %}