From baace1fa5df46694ddd515dc3bbca59b22df8692 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 03:51:44 +0200 Subject: Extract flashes to i18n and stop dispatching on submit labels --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6d46d522..0a7ba109 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base return unless logged_in? return unless current_user.otp_required? && !current_user.otp_enrolled? return if %w[otp_enrollments otp_challenges sessions users].include?(controller_name) - flash[:error] = "Your account requires a second factor -- set it up to continue." + flash[:error] = t("flash.common.otp_required") redirect_to edit_user_path(current_user) end end -- cgit v1.3