feat: add session expiry warning
Some checks failed
CI / python-validation (push) Has been cancelled
CI / docker-release-gate (push) Has been cancelled
i18n / compile-translations (push) Has been cancelled

This commit is contained in:
Md Bayazid Bostame
2026-04-01 22:04:31 +02:00
parent 5fab01d57a
commit e47b1b3110
7 changed files with 188 additions and 1 deletions

View File

@@ -19,5 +19,12 @@ def role_context(request):
)
else:
context.update({'header_notifications': [], 'header_unread_notification_count': 0})
context.update({'static_asset_version': settings.STATIC_ASSET_VERSION})
context.update(
{
'static_asset_version': settings.STATIC_ASSET_VERSION,
'session_idle_timeout_seconds': settings.SESSION_IDLE_TIMEOUT_SECONDS,
'session_reauth_timeout_seconds': settings.SENSITIVE_ACTION_REAUTH_SECONDS,
'force_branded_error_pages': settings.FORCE_BRANDED_ERROR_PAGES,
}
)
return context