diff --git a/app.py b/app.py index 2f6da49..5eb0496 100644 --- a/app.py +++ b/app.py @@ -380,7 +380,7 @@ def login_page(request: Request, reason: str | None = Query(default=None)): reason_map = { "expired": "Сессия истекла. Войдите заново.", - "idle": "Сессия завершена из-за 2 часов бездействия.", + "idle": "Сессия завершена из-за 4 часов бездействия.", "logged_out": "Вы вышли из системы.", "invalid": "Нужно войти в систему.", } @@ -427,7 +427,7 @@ def login_submit( httponly=True, secure=True, samesite="lax", - max_age=7200, + max_age=4 * 60 * 60, ) return response diff --git a/services/auth_service.py b/services/auth_service.py index 2b4fb18..3e45493 100644 --- a/services/auth_service.py +++ b/services/auth_service.py @@ -15,7 +15,7 @@ from repositories.auth_repository import ( revoke_auth_session, ) -IDLE_TIMEOUT_SECONDS = 999_999 +IDLE_TIMEOUT_SECONDS = 4 * 60 * 60 SESSION_TOUCH_THROTTLE_SECONDS = 60 PBKDF2_ITERATIONS = 260_000 diff --git a/vmix.zip b/vmix.zip index 882bfb1..85bea07 100644 Binary files a/vmix.zip and b/vmix.zip differ