Rename access denied message #2713

This commit is contained in:
Martin Lensment 2015-08-18 12:45:12 +03:00
parent a4ccc5749e
commit e3bce2325e
3 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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'

View file

@ -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