0
0
Fork 0

Fix not working I18n on 2FA and Sign in token page (#14087)

This commit is contained in:
fuyu 2020-06-20 20:30:13 +09:00 committed by GitHub
parent ac8a788370
commit a279acc730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View file

@ -40,8 +40,10 @@ module TwoFactorAuthenticationConcern
end
def prompt_for_two_factor(user)
session[:attempt_user_id] = user.id
@body_classes = 'lighter'
render :two_factor
set_locale do
session[:attempt_user_id] = user.id
@body_classes = 'lighter'
render :two_factor
end
end
end