diff --git a/app/controllers/registrar_controller.rb b/app/controllers/registrar_controller.rb index 119f6ad88..ba165da07 100644 --- a/app/controllers/registrar_controller.rb +++ b/app/controllers/registrar_controller.rb @@ -26,7 +26,7 @@ class RegistrarController < ApplicationController end return if riw && aiw - flash[:alert] = t('access_denied') + flash[:alert] = t('ip_is_not_whitelisted') sign_out(current_user) redirect_to registrar_login_path and return end diff --git a/config/locales/en.yml b/config/locales/en.yml index d3680c7fd..7d33957db 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -911,5 +911,3 @@ en: pending_epp: Pending epp id: ID hidden: '[hidden]' - registrar_ip_is_not_whitelisted: 'Registrar IP is not whitelisted' - api_ip_is_not_whitelisted: 'API IP is not whitelisted' diff --git a/spec/features/registrar/sessions_spec.rb b/spec/features/registrar/sessions_spec.rb index 808aa7413..eba0d6dfa 100644 --- a/spec/features/registrar/sessions_spec.rb +++ b/spec/features/registrar/sessions_spec.rb @@ -32,7 +32,7 @@ feature 'Sessions', type: :feature do fill_in 'depp_user_tag', with: @api_user_invalid_ip.username fill_in 'depp_user_password', with: @api_user_invalid_ip.password click_button 'Log in' - page.should have_text('Access denied') + page.should have_text('IP is not whitelisted') end it 'should get in with invalid when whitelist disabled' do