From 15e444ae38a05541542104da07c5a0ed370688fa Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 10 Jul 2022 06:57:16 +0000 Subject: [PATCH] Information text on sudo password entry (#33660). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@21699 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/sudo_mode/_new_modal.html.erb | 2 ++ app/views/sudo_mode/new.html.erb | 2 ++ config/locales/de.yml | 1 + config/locales/en.yml | 1 + 4 files changed, 6 insertions(+) diff --git a/app/views/sudo_mode/_new_modal.html.erb b/app/views/sudo_mode/_new_modal.html.erb index bc780be56..8c86436cf 100644 --- a/app/views/sudo_mode/_new_modal.html.erb +++ b/app/views/sudo_mode/_new_modal.html.erb @@ -1,4 +1,5 @@

<%= l(:label_password_required) %>

+

<%= t 'sudo_mode_new_info_html' %>

<%= form_tag({}, remote: true) do %> <%= hidden_field_tag '_method', request.request_method %> @@ -8,6 +9,7 @@

<%= password_field_tag :sudo_password, nil, size: 25 %> +
<%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>

diff --git a/app/views/sudo_mode/new.html.erb b/app/views/sudo_mode/new.html.erb index 323a4556c..6532dc4a9 100644 --- a/app/views/sudo_mode/new.html.erb +++ b/app/views/sudo_mode/new.html.erb @@ -1,4 +1,5 @@

<%= l :label_password_required %>

+

<%= t 'sudo_mode_new_info_html' %>

<%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %> <%= hidden_field_tag '_method', request.request_method %> @@ -8,6 +9,7 @@

<%= password_field_tag :sudo_password, nil, size: 25 %> +
<%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>

<%= submit_tag l(:button_submit) %> diff --git a/config/locales/de.yml b/config/locales/de.yml index e0d73b550..3120ea913 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1328,6 +1328,7 @@ de: field_passwd_changed_on: Passwort zuletzt geändert label_import_users: Benutzer importieren label_days_to_html: "%{days} Tage bis %{date}" + sudo_mode_new_info_html: Warum das ganze? Zu Ihrem Schutz bitten wir Sie Ihr Kennwort zu bestätigen, bevor Sie sicherheitsrelevante Einstellungen ändern. setting_twofa: Zwei-Faktor-Authentifizierung twofa__totp__name: Authentifizierungs-App twofa__totp__text_pairing_info_html: 'Bitte scannen Sie diesen QR-Code oder verwenden Sie den Klartext-Schlüssel in einer TOTP-kompatiblen Authentifizierungs-App (z.B. Google Authenticator, Authy, Duo Mobile). Anschließend geben Sie bitte den in der App generierten Code unten ein.' diff --git a/config/locales/en.yml b/config/locales/en.yml index 209e827f6..bfaf7f804 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1357,6 +1357,7 @@ en: text_project_is_public_anonymous: Public projects and their contents are openly available on the network. label_import_time_entries: Import time entries label_import_users: Import users + sudo_mode_new_info_html: What's happening? You need to reconfirm your password before taking any administrative actions, this ensures your account stays protected. twofa__totp__name: Authenticator app twofa__totp__text_pairing_info_html: 'Scan this QR code or enter the plain text key into a TOTP app (e.g. Google Authenticator, Authy, Duo Mobile) and enter the code in the field below to activate two-factor authentication.' -- 2.39.5