Remove I18n. prefix
This commit is contained in:
parent
702156258c
commit
0f80bcef14
|
@ -190,7 +190,7 @@ class UserController < ApplicationController
|
||||||
current_user.otp_module = :enabled
|
current_user.otp_module = :enabled
|
||||||
|
|
||||||
if current_user.authenticate_otp(req_params[:otp_validation])
|
if current_user.authenticate_otp(req_params[:otp_validation])
|
||||||
flash[:success] = I18n.t('views.auth.2fa.setup.success')
|
flash[:success] = t('views.auth.2fa.setup.success')
|
||||||
current_user.save!
|
current_user.save!
|
||||||
else
|
else
|
||||||
flash[:error] = t('views.auth.2fa.errors.invalid_code')
|
flash[:error] = t('views.auth.2fa.errors.invalid_code')
|
||||||
|
|
Loading…
Reference in New Issue