1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

Set user's localization before redirecting to password change path to generate flash in current user's language

This commit is contained in:
Holger Just 2016-07-15 12:53:25 +02:00
parent c55dd52b07
commit 47f389ce22

View File

@ -51,7 +51,7 @@ class ApplicationController < ActionController::Base
end end
end end
before_action :session_expiration, :user_setup, :check_if_login_required, :check_password_change, :set_localization before_action :session_expiration, :user_setup, :check_if_login_required, :set_localization, :check_password_change
rescue_from ::Unauthorized, :with => :deny_access rescue_from ::Unauthorized, :with => :deny_access
rescue_from ::ActionView::MissingTemplate, :with => :missing_template rescue_from ::ActionView::MissingTemplate, :with => :missing_template