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

Use humanized boolean value

Oliver Günther24c1637746b9
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
index 21db5b4a3cc..bc046256f2c 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
@@ -39,7 +39,7 @@
end
component.with_attribute(key: t('two_factor_authentication.settings.label_enforced'),
- value: !!configuration['enforced'])
+ value: !!configuration['enforced'] ? t(:general_text_Yes) : t(:general_text_No))
component.with_attribute(key: t('two_factor_authentication.settings.label_remember'),
value: if configuration['allow_remember_for_days'].to_i == 0