fix: Branding auf AegisSight vereinheitlicht, Select-Bug behoben, SMTP korrigiert
- 3 Options (russische-staatspropaganda, russische-opposition, syrien-nahost) in den Select-Tag verschoben (waren außerhalb und nicht auswählbar) - IntelSight -> AegisSight in E-Mail-Templates und JWT Issuer/Audience - MAGIC_LINK_BASE_URL: osint.intelsight.de -> monitor.aegis-sight.de - SMTP Default: noreply@aegis-sight.de Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -8,8 +8,8 @@ from config import JWT_SECRET, JWT_ALGORITHM, JWT_EXPIRE_HOURS
|
||||
|
||||
security = HTTPBearer()
|
||||
|
||||
JWT_ISSUER = "intelsight-portal"
|
||||
JWT_AUDIENCE = "intelsight-portal"
|
||||
JWT_ISSUER = "aegissight-portal"
|
||||
JWT_AUDIENCE = "aegissight-portal"
|
||||
|
||||
|
||||
def hash_password(password: str) -> str:
|
||||
|
||||
@@ -23,12 +23,12 @@ SMTP_HOST = os.environ.get("SMTP_HOST", "")
|
||||
SMTP_PORT = int(os.environ.get("SMTP_PORT", "587"))
|
||||
SMTP_USER = os.environ.get("SMTP_USER", "")
|
||||
SMTP_PASSWORD = os.environ.get("SMTP_PASSWORD", "")
|
||||
SMTP_FROM_EMAIL = os.environ.get("SMTP_FROM_EMAIL", "noreply@intelsight.de")
|
||||
SMTP_FROM_EMAIL = os.environ.get("SMTP_FROM_EMAIL", "noreply@aegis-sight.de")
|
||||
SMTP_FROM_NAME = os.environ.get("SMTP_FROM_NAME", "AegisSight Verwaltung")
|
||||
SMTP_USE_TLS = os.environ.get("SMTP_USE_TLS", "true").lower() == "true"
|
||||
|
||||
# Magic Link Base URL (fuer OSINT-Monitor Einladungen)
|
||||
MAGIC_LINK_BASE_URL = os.environ.get("MAGIC_LINK_BASE_URL", "https://osint.intelsight.de")
|
||||
MAGIC_LINK_BASE_URL = os.environ.get("MAGIC_LINK_BASE_URL", "https://monitor.aegis-sight.de")
|
||||
MAGIC_LINK_EXPIRE_MINUTES = 10
|
||||
|
||||
# Source Discovery (geteilte Config mit OSINT-Monitor)
|
||||
|
||||
@@ -7,17 +7,17 @@ def invite_email(username: str, org_name: str, code: str, link: str) -> tuple[st
|
||||
Returns:
|
||||
(subject, html_body)
|
||||
"""
|
||||
subject = f"Einladung zum IntelSight OSINT Monitor - {org_name}"
|
||||
subject = f"Einladung zum AegisSight OSINT Monitor - {org_name}"
|
||||
html = f"""<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta charset="UTF-8"></head>
|
||||
<body style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0f172a; color: #e2e8f0; padding: 40px 20px;">
|
||||
<div style="max-width: 480px; margin: 0 auto; background: #1e293b; border-radius: 12px; padding: 32px; border: 1px solid #334155;">
|
||||
<h1 style="color: #f0b429; font-size: 20px; margin: 0 0 24px 0;">IntelSight OSINT Monitor</h1>
|
||||
<h1 style="color: #f0b429; font-size: 20px; margin: 0 0 24px 0;">AegisSight OSINT Monitor</h1>
|
||||
|
||||
<p style="margin: 0 0 16px 0;">Hallo {username},</p>
|
||||
|
||||
<p style="margin: 0 0 16px 0;">Sie wurden zur Organisation <strong>{org_name}</strong> im IntelSight OSINT Monitor eingeladen.</p>
|
||||
<p style="margin: 0 0 16px 0;">Sie wurden zur Organisation <strong>{org_name}</strong> im AegisSight OSINT Monitor eingeladen.</p>
|
||||
|
||||
<p style="margin: 0 0 24px 0;">Klicken Sie auf den Link, um Ihren Zugang zu aktivieren:</p>
|
||||
|
||||
|
||||
@@ -449,10 +449,10 @@
|
||||
<option value="irankonflikt">Irankonflikt</option>
|
||||
<option value="osint-international">OSINT International</option>
|
||||
<option value="extremismus-deutschland">Extremismus Deutschland</option>
|
||||
</select>
|
||||
<option value="russische-staatspropaganda">Russische Staatspropaganda</option>
|
||||
<option value="russische-opposition">Russische Opposition / Exilmedien</option>
|
||||
<option value="russische-opposition">Russische Opposition / Exilmedien</option>
|
||||
<option value="syrien-nahost">Syrien / Nahost</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren