Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Show unknown when it is a session not a token in expires column

Behrokh Satarnejad6aca507c2b0c
diff --git a/app/components/users/sessions/row_component.rb b/app/components/users/sessions/row_component.rb
index 8ab366aeecf..b18bc60c363 100644
--- a/app/components/users/sessions/row_component.rb
+++ b/app/components/users/sessions/row_component.rb
@@ -68,10 +68,8 @@ module Users
def expires_on
if token?
format_expires(token_expires_at)
- elsif session? && record.respond_to?(:expires_at) && record.expires_at.present?
- format_expires(record.expires_at)
else
- "-"
+ I18n.t("users.sessions.unknown")
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f32a4ac7545..d9f3076ac9f 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -673,6 +673,7 @@ en:
device: "Device / OS"
unknown_browser: "unknown browser"
unknown_os: "unknown operating system"
+ unknown: "(unknown)"
current: "Current (this device)"
title: "Session management"
instructions: "You are logged in to your account through the following devices. Revoke sessions that you do not recognise or from devices you do not control."