mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Rename access denied message #2713
This commit is contained in:
parent
a4ccc5749e
commit
e3bce2325e
3 changed files with 2 additions and 4 deletions
|
@ -26,7 +26,7 @@ class RegistrarController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
return if riw && aiw
|
return if riw && aiw
|
||||||
flash[:alert] = t('access_denied')
|
flash[:alert] = t('ip_is_not_whitelisted')
|
||||||
sign_out(current_user)
|
sign_out(current_user)
|
||||||
redirect_to registrar_login_path and return
|
redirect_to registrar_login_path and return
|
||||||
end
|
end
|
||||||
|
|
|
@ -911,5 +911,3 @@ en:
|
||||||
pending_epp: Pending epp
|
pending_epp: Pending epp
|
||||||
id: ID
|
id: ID
|
||||||
hidden: '[hidden]'
|
hidden: '[hidden]'
|
||||||
registrar_ip_is_not_whitelisted: 'Registrar IP is not whitelisted'
|
|
||||||
api_ip_is_not_whitelisted: 'API IP is not whitelisted'
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ feature 'Sessions', type: :feature do
|
||||||
fill_in 'depp_user_tag', with: @api_user_invalid_ip.username
|
fill_in 'depp_user_tag', with: @api_user_invalid_ip.username
|
||||||
fill_in 'depp_user_password', with: @api_user_invalid_ip.password
|
fill_in 'depp_user_password', with: @api_user_invalid_ip.password
|
||||||
click_button 'Log in'
|
click_button 'Log in'
|
||||||
page.should have_text('Access denied')
|
page.should have_text('IP is not whitelisted')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should get in with invalid when whitelist disabled' do
|
it 'should get in with invalid when whitelist disabled' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue