26382a7ac6
CI / Test (macos-latest) (push) Waiting to run
CI / Test (windows-latest) (push) Waiting to run
CI / Build (no embeddings / no ORT) (push) Waiting to run
CI / Format (push) Waiting to run
CI / Cookbook (Node) (push) Waiting to run
CI / Pi Extension (Node) (push) Waiting to run
CI / Rust SDK (lean-ctx-client) (push) Waiting to run
CI / Embed SDK (lean-ctx-sdk) (push) Waiting to run
CI / Python SDK (leanctx) (push) Waiting to run
CI / Hermes Plugin (Python) (push) Waiting to run
CI / SDK Conformance Matrix (push) Waiting to run
CI / Coverage (push) Waiting to run
CI / cargo-deny (push) Waiting to run
CI / Adversarial Safety (push) Waiting to run
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
JetBrains Plugin / Actionlint (push) Waiting to run
CI / Benchmarks (push) Waiting to run
CI / Output-Quality Gate (eval A/B) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / CI Green (push) Blocked by required conditions
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (rust) (push) Waiting to run
JetBrains Plugin / Validation (push) Waiting to run
JetBrains Plugin / Build (push) Waiting to run
JetBrains Plugin / Test (push) Blocked by required conditions
Security Check / Security Scan (push) Waiting to run
CI / Test (ubuntu-latest) (push) Has started running
CI / Clippy (push) Has started running
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
LeanCTX Cloud — Email Templates Overview
|
|
=========================================
|
|
|
|
Quelle: rust/src/cloud_server/auth.rs (Mailer struct, Zeilen 44-94)
|
|
Transport: lettre via SMTP (STARTTLS)
|
|
Format: Plaintext (kein HTML)
|
|
|
|
Templates:
|
|
1. verification.txt — Email-Verifizierung (Registration + Login-Resend)
|
|
2. password-reset.txt — Passwort-Reset
|
|
|
|
Umgebungsvariablen (config.rs):
|
|
SMTP_HOST — SMTP Server Hostname
|
|
SMTP_PORT — SMTP Port (Default: 587)
|
|
SMTP_USERNAME — SMTP Username
|
|
SMTP_PASSWORD — SMTP Password
|
|
SMTP_FROM — Absender-Adresse (z.B. "LeanCTX <hello@leanctx.com>")
|
|
API_BASE_URL — API URL fuer Verification Links (z.B. https://api.leanctx.com)
|
|
PUBLIC_BASE_URL — Website URL fuer Password Reset Links (z.B. https://leanctx.com)
|
|
|
|
Ausloeser:
|
|
POST /api/auth/register → verification.txt (einmal nach Registration)
|
|
POST /api/auth/login → verification.txt (wenn Email noch nicht verifiziert)
|
|
POST /api/auth/resend-verification → verification.txt (manueller Resend)
|
|
POST /api/auth/forgot-password → password-reset.txt
|
|
|
|
Sicherheitshinweise:
|
|
- Tokens sind 32-Byte Hex (256-Bit), gespeichert als SHA256-Hash in DB
|
|
- Verification Token: 24h Ablauf
|
|
- Reset Token: 1h Ablauf
|
|
- Tokens sind Single-Use (consumed_at wird gesetzt)
|
|
- forgot-password gibt generische Antwort (Anti-Email-Enumeration)
|
|
- Password Reset verifiziert automatisch auch die Email-Adresse
|