mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Merge branch '105842700-registrants_portal' into staging
This commit is contained in:
commit
a71a4dd507
2 changed files with 15 additions and 2 deletions
|
@ -26,7 +26,7 @@ class Registrant::DomainsController < RegistrantController
|
||||||
dom.pending_json.present?
|
dom.pending_json.present?
|
||||||
|
|
||||||
@domain = dom
|
@domain = dom
|
||||||
confirm_path = "#{ENV['registrant_url']}/registrant/domain_update_confirms"
|
confirm_path = get_confirm_path(dom.statuses)
|
||||||
@verification_url = "#{confirm_path}/#{@domain.id}?token=#{@domain.registrant_verification_token}"
|
@verification_url = "#{confirm_path}/#{@domain.id}?token=#{@domain.registrant_verification_token}"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -74,4 +74,13 @@ class Registrant::DomainsController < RegistrantController
|
||||||
yield
|
yield
|
||||||
params[:q][:valid_to_lteq] = ca_cache
|
params[:q][:valid_to_lteq] = ca_cache
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def get_confirm_path(statuses)
|
||||||
|
if statuses.include?(DomainStatus::PENDING_UPDATE)
|
||||||
|
"#{ENV['registrant_url']}/registrant/domain_update_confirms"
|
||||||
|
elsif statuses.include?(DomainStatus::PENDING_DELETE)
|
||||||
|
"#{ENV['registrant_url']}/registrant/domain_delete_confirms"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
|
@ -932,10 +932,14 @@ en:
|
||||||
if_auth_info_is_left_empty_it_will_be_auto_generated: 'If auth info is left empty, it will be auto generated.'
|
if_auth_info_is_left_empty_it_will_be_auto_generated: 'If auth info is left empty, it will be auto generated.'
|
||||||
each_domain_name_must_end_with_colon_sign: 'Each domain name must end with colon (:) sign.'
|
each_domain_name_must_end_with_colon_sign: 'Each domain name must end with colon (:) sign.'
|
||||||
expiration_remind_subject: 'The %{name} domain has expired'
|
expiration_remind_subject: 'The %{name} domain has expired'
|
||||||
|
personal_domain_verification_url: 'Personal domain verification url'
|
||||||
|
available_verification_url_not_found: 'Available verification url not found, for domain.'
|
||||||
|
contact_already_associated_with_the_domain: 'Object association prohibits operation, contact already associated with the domain'
|
||||||
add_reserved_domain: 'Add domain to reserved list'
|
add_reserved_domain: 'Add domain to reserved list'
|
||||||
add_blocked_domain: 'Add domain to blocked list'
|
add_blocked_domain: 'Add domain to blocked list'
|
||||||
edit_pw: 'Edit Pw'
|
edit_pw: 'Edit Pw'
|
||||||
optional: 'Optional'
|
optional: 'Optional'
|
||||||
contact_already_associated_with_the_domain: 'Object association prohibits operation, contact already associated with the domain'
|
=======
|
||||||
personal_domain_verification_url: 'Personal domain verification url'
|
personal_domain_verification_url: 'Personal domain verification url'
|
||||||
available_verification_url_not_found: 'Available verification url not found, for domain.'
|
available_verification_url_not_found: 'Available verification url not found, for domain.'
|
||||||
|
>>>>>>> Temporary merge branch 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue