From 35a06319fada8a199251c3aaa4038f7d46679991 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 27 Aug 2025 09:05:13 -0400 Subject: [PATCH] Rely on `mail_to` helper default name arg value (#35913) --- app/views/auth/confirmations/captcha.html.haml | 2 +- .../auth/sessions/two_factor/_otp_authentication_form.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/auth/confirmations/captcha.html.haml b/app/views/auth/confirmations/captcha.html.haml index 035ac3a86a8..244948771ff 100644 --- a/app/views/auth/confirmations/captcha.html.haml +++ b/app/views/auth/confirmations/captcha.html.haml @@ -14,7 +14,7 @@ = render_captcha - %p.lead= t('auth.captcha_confirmation.help_html', email: mail_to(Setting.site_contact_email, nil)) + %p.lead= t('auth.captcha_confirmation.help_html', email: mail_to(Setting.site_contact_email)) .actions = form.button t('challenge.confirm'), diff --git a/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml b/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml index 30e97a68c11..6062d33a1bc 100644 --- a/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml +++ b/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml @@ -16,7 +16,7 @@ = f.button :button, t('auth.login'), type: :submit - if Setting.site_contact_email.present? - %p.hint.subtle-hint= t('users.otp_lost_help_html', email: mail_to(Setting.site_contact_email, nil)) + %p.hint.subtle-hint= t('users.otp_lost_help_html', email: mail_to(Setting.site_contact_email)) - if webauthn_enabled? .form-footer