summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-08-29 06:37:09 +0000
committerGo MAEDA <maeda@farend.jp>2020-08-29 06:37:09 +0000
commitbe7f5e21faa05bdc483d1b58c8887ff499082073 (patch)
tree3eb76db7dfd87ad1b41494261d54b48f0d3ac09f /config
parent560bca344ae467cda03e758159fbf131d5c49f43 (diff)
downloadredmine-be7f5e21faa05bdc483d1b58c8887ff499082073.tar.gz
redmine-be7f5e21faa05bdc483d1b58c8887ff499082073.zip
Adds a setting to disable/enable/require 2fa auth (#1237).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@19989 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/locales/de.yml5
-rw-r--r--config/locales/en.yml6
-rw-r--r--config/routes.rb2
-rw-r--r--config/settings.yml3
4 files changed, 16 insertions, 0 deletions
diff --git a/config/locales/de.yml b/config/locales/de.yml
index c86f39533..b588ac2eb 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -719,6 +719,7 @@ de:
label_repository_new: Neues Repository
label_repository_plural: Repositories
label_required: Erforderlich
+ label_required_lower: erforderlich
label_result_plural: Resultate
label_reverse_chronological_order: in umgekehrter zeitlicher Reihenfolge
label_revision: Revision
@@ -1330,8 +1331,12 @@ de:
twofa_currently_active: "Aktiv: %{twofa_scheme_name}"
twofa_not_active: "Nicht aktiv"
twofa_label_code: Code
+ twofa_hint_disabled_html: Die Einstellung <strong>%{label}</strong> deaktiviert Zwei-Faktor-Authentifizierung für alle Nutzer und löscht verbundene Apps.
+ twofa_hint_required_html: Die Einstellung <strong>%{label}</strong> fordert alle Nutzer bei ihrem nächsten Login dazu auf Zwei-Faktor-Authentifizierung einzurichten.
twofa_label_setup: Zwei-Faktor-Authentifizierung einrichten
twofa_label_deactivation_confirmation: Zwei-Faktor-Authentifizierung abschalten
+ twofa_notice_select: "Bitte wählen Sie Ihr gewünschtes Schema für die Zwei-Faktor-Authentifizierung:"
+ twofa_warning_require: Der Administrator fordert Sie dazu auf Zwei-Faktor-Authentifizierung einzurichten.
twofa_activated: Zwei-Faktor-Authentifizierung erfolgreich eingerichtet.
twofa_deactivated: Zwei-Faktor-Authentifizierung abgeschaltet.
twofa_mail_body_security_notification_paired: "Zwei-Faktor-Authentifizierung per %{field} eingerichtet."
diff --git a/config/locales/en.yml b/config/locales/en.yml
index cc820eabd..ee2196501 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -870,6 +870,7 @@ en:
label_copied_from: Copied from
label_stay_logged_in: Stay logged in
label_disabled: disabled
+ label_optional: optional
label_show_completed_versions: Show completed versions
label_me: me
label_board: Forum
@@ -993,6 +994,7 @@ en:
label_fields_permissions: Fields permissions
label_readonly: Read-only
label_required: Required
+ label_required_lower: required
label_hidden: Hidden
label_attribute_of_project: "Project's %{name}"
label_attribute_of_issue: "Issue's %{name}"
@@ -1307,8 +1309,12 @@ en:
twofa_currently_active: "Currently active: %{twofa_scheme_name}"
twofa_not_active: "Not activated"
twofa_label_code: Code
+ twofa_hint_disabled_html: Setting <strong>%{label}</strong> will deactivate and unpair two-factor authentication devices for all users.
+ twofa_hint_required_html: Setting <strong>%{label}</strong> will require all users to set up two-factor authentication at their next login.
twofa_label_setup: Enable two-factor authentication
twofa_label_deactivation_confirmation: Disable two-factor authentication
+ twofa_notice_select: "Please select the two-factor scheme you would like to use:"
+ twofa_warning_require: The administrator requires you to enable two-factor authentication.
twofa_activated: Two-factor authentication successfully enabled.
twofa_deactivated: Two-factor authentication disabled.
twofa_mail_body_security_notification_paired: "Two-factor authentication successfully enabled using %{field}."
diff --git a/config/routes.rb b/config/routes.rb
index 3e6ae9cc7..97ecf2913 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -88,12 +88,14 @@ Rails.application.routes.draw do
match 'my/add_block', :controller => 'my', :action => 'add_block', :via => :post
match 'my/remove_block', :controller => 'my', :action => 'remove_block', :via => :post
match 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :via => :post
+ match 'my/twofa/activate/init', :controller => 'twofa', :action => 'activate_init', :via => :post
match 'my/twofa/:scheme/activate/init', :controller => 'twofa', :action => 'activate_init', :via => :post
match 'my/twofa/:scheme/activate/confirm', :controller => 'twofa', :action => 'activate_confirm', :via => :get
match 'my/twofa/:scheme/activate', :controller => 'twofa', :action => 'activate', :via => [:get, :post]
match 'my/twofa/:scheme/deactivate/init', :controller => 'twofa', :action => 'deactivate_init', :via => :post
match 'my/twofa/:scheme/deactivate/confirm', :controller => 'twofa', :action => 'deactivate_confirm', :via => :get
match 'my/twofa/:scheme/deactivate', :controller => 'twofa', :action => 'deactivate', :via => [:get, :post]
+ match 'my/twofa/select_scheme', :controller => 'twofa', :action => 'select_scheme', :via => :get
match 'users/:user_id/twofa/deactivate', :controller => 'twofa', :action => 'admin_deactivate', :via => :post
resources :users do
diff --git a/config/settings.yml b/config/settings.yml
index 7c0912232..01f55a970 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -34,6 +34,9 @@ show_custom_fields_on_registration:
lost_password:
default: 1
security_notifications: 1
+twofa:
+ default: 1
+ security_notifications: 1
unsubscribe:
default: 1
password_required_char_classes: