mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-22 12:53:15 +01:00
Add gateway sessions page and end sessions on credential change
This commit is contained in:
@@ -62,6 +62,7 @@ async def auth_check(request: Request):
|
||||
response = PlainTextResponse("OK", status_code=200)
|
||||
response.headers["Cache-Control"] = "no-store"
|
||||
if session:
|
||||
request.app.state.session_service.touch(session)
|
||||
if session.username:
|
||||
response.headers["X-Auth-User"] = _safe_header(session.username)
|
||||
if session.email:
|
||||
|
||||
Reference in New Issue
Block a user