Rename "Domain password" to "Domain transfer code"

Original change in 4b836f1476

#660
This commit is contained in:
Artur Beljajev 2018-01-22 18:12:35 +02:00
parent a4c11996f2
commit 07900ed807
3 changed files with 4 additions and 4 deletions

View file

@ -118,7 +118,7 @@ module Depp
current_user.request(epp_xml.transfer({
name: { value: params[:domain_name] },
authInfo: { pw: { value: params[:password] } }
authInfo: { pw: { value: params[:transfer_code] } }
}, op, Domain.construct_custom_params_hash(params)))
end

View file

@ -11,10 +11,10 @@
<div class="form-group">
<div class="col-md-3 control-label">
<%= label_tag :password, t(:password), class: 'required' %>
<%= label_tag :transfer_code, nil, class: 'required' %>
</div>
<div class="col-md-7">
<%= text_field_tag :password, params[:password], class: 'form-control', autocomplete: 'off',
<%= text_field_tag :transfer_code, params[:transfer_code], class: 'form-control', autocomplete: 'off',
required: true %>
</div>
</div>

View file

@ -24,7 +24,7 @@ class RegistrarDomainsTest < ActionDispatch::IntegrationTest
visit registrar_domains_url
click_link 'Transfer'
fill_in 'Name', with: 'shop.test'
fill_in 'Password', with: '65078d5'
fill_in 'Transfer code', with: '65078d5'
click_button 'Transfer'
assert_text 'Transfer requested at: 2010-07-05 10:30:00'