summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
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
40 return unless logged_in? 40 return unless logged_in?
41 return unless current_user.otp_required? && !current_user.otp_enrolled? 41 return unless current_user.otp_required? && !current_user.otp_enrolled?
42 return if %w[otp_enrollments otp_challenges sessions users].include?(controller_name) 42 return if %w[otp_enrollments otp_challenges sessions users].include?(controller_name)
43 flash[:error] = "Your account requires a second factor -- set it up to continue." 43 flash[:error] = t("flash.common.otp_required")
44 redirect_to edit_user_path(current_user) 44 redirect_to edit_user_path(current_user)
45 end 45 end
46end 46end