From a45aba1b106c4d79f7dec3f0d6e1c655dc6e6ffa Mon Sep 17 00:00:00 2001 From: Holger Just Date: Thu, 14 Sep 2017 17:18:50 +0200 Subject: [PATCH 1/2] Clarify consequences of disabling the login_required setting --- app/views/settings/_authentication.html.erb | 6 +++++- config/locales/de.yml | 3 +++ config/locales/en.yml | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/settings/_authentication.html.erb b/app/views/settings/_authentication.html.erb index 4454bbae4..fc8fb0a78 100644 --- a/app/views/settings/_authentication.html.erb +++ b/app/views/settings/_authentication.html.erb @@ -1,7 +1,11 @@ <%= form_tag({:action => 'edit', :tab => 'authentication'}) do %>
-

<%= setting_check_box :login_required %>

+

+

<%= setting_select :login_required, [[l(:label_login_required_yes), "1"], + [l(:label_login_required_no), "0"]] %> + <%= t(:text_login_required_html, anonymous_role_path: edit_role_path(Role.anonymous)) %> +

<%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %>

diff --git a/config/locales/de.yml b/config/locales/de.yml index 345b30072..61794b6ae 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1234,3 +1234,6 @@ de: setting_timelog_accept_0_hours: Accept time logs with 0 hours setting_timelog_max_hours_per_day: Maximum hours that can be logged per day and user label_x_revisions: "%{count} revisions" + text_login_required_html: Ohne erforderliche Authentifizierung sind öffentlichen Projekte und deren Inhalte ohne Anmeldung im Internet frei zugänglich. Sie können die verwendeten Berechtigungen anpassen. + label_login_required_yes: "Ja" + label_login_required_no: "Nein, anonymen Zugriff auf öffentliche Projekte erlauben" diff --git a/config/locales/en.yml b/config/locales/en.yml index 3fb86c14c..f1a0ea086 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1215,3 +1215,6 @@ en: description_issue_category_reassign: Choose issue category description_wiki_subpages_reassign: Choose new parent page text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier cannot be changed.' + text_login_required_html: When not requiring authentication, public projects and their contents are openly available on the Internet. You can edit the applicable permissions. + label_login_required_yes: "Yes" + label_login_required_no: "No, allow anonymous access to public projects" -- 2.13.0