Remove I18n. prefix

This commit is contained in:
Dominik Kwiatek 2020-10-23 21:01:00 +02:00
parent 702156258c
commit 0f80bcef14
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class UserController < ApplicationController
current_user.otp_module = :enabled
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!
else
flash[:error] = t('views.auth.2fa.errors.invalid_code')