update
This commit is contained in:
@@ -1227,7 +1227,7 @@ def _reset_email_subject_body(display_name: str, reset_link: str) -> Tuple[str,
|
||||
f"<p>Sie haben eine Passwort-Zurücksetzung angefordert.</p>"
|
||||
f"<p><a href='{reset_link}' style='display:inline-block;background:#5B8DB3;"
|
||||
f"color:white;padding:10px 24px;border-radius:6px;text-decoration:none;"
|
||||
f"font-weight:600'>Neues Passwort speichern</a></p>"
|
||||
f"font-weight:600'>Neues Passwort wählen</a></p>"
|
||||
f"<p style='color:#888;font-size:13px'>Der Link ist 1 Stunde gültig.</p>"
|
||||
f"<p style='color:#888;font-size:12px'>Falls Sie diese Anfrage nicht gestellt haben, "
|
||||
f"ignorieren Sie diese E-Mail.</p></div>"
|
||||
@@ -2190,18 +2190,32 @@ async def empfang_practice_info(request: Request):
|
||||
# HTML PAGE
|
||||
# =====================================================================
|
||||
|
||||
_HTML_NO_CACHE = {
|
||||
"Cache-Control": "no-cache, no-store, must-revalidate",
|
||||
"Pragma": "no-cache",
|
||||
"Expires": "0",
|
||||
"Content-Security-Policy": "frame-ancestors *;",
|
||||
}
|
||||
|
||||
|
||||
@router.get("/", response_class=HTMLResponse)
|
||||
async def empfang_page(request: Request):
|
||||
html_path = Path(__file__).resolve().parent / "web" / "empfang.html"
|
||||
if html_path.is_file():
|
||||
return HTMLResponse(
|
||||
content=html_path.read_text(encoding="utf-8"),
|
||||
headers={
|
||||
"Cache-Control": "no-cache, no-store, must-revalidate",
|
||||
"Pragma": "no-cache",
|
||||
"Expires": "0",
|
||||
# Desktop-Huelle (iframe-Modus): erlaubt Einbettung aus pywebview/null-Origin
|
||||
"Content-Security-Policy": "frame-ancestors *;",
|
||||
},
|
||||
headers=_HTML_NO_CACHE,
|
||||
)
|
||||
return HTMLResponse(content="<h1>empfang.html nicht gefunden</h1>", status_code=404)
|
||||
|
||||
|
||||
@router.get("/chatwin.html", response_class=HTMLResponse)
|
||||
async def empfang_chatwin_page():
|
||||
"""Kompaktes Chat-Fenster (neues Fenster / Tab), z. B. 1:1 oder Allgemein."""
|
||||
html_path = Path(__file__).resolve().parent / "web" / "empfang_chat_minimal.html"
|
||||
if html_path.is_file():
|
||||
return HTMLResponse(
|
||||
content=html_path.read_text(encoding="utf-8"),
|
||||
headers=_HTML_NO_CACHE,
|
||||
)
|
||||
return HTMLResponse(content="<h1>chatwin nicht gefunden</h1>", status_code=404)
|
||||
|
||||
Reference in New Issue
Block a user