mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Add delete action to confirmations API endpoint
This commit is contained in:
parent
4eaa8065ba
commit
64d35a864f
4 changed files with 44 additions and 18 deletions
|
@ -57,7 +57,7 @@ class DomainDeleteMailer < ApplicationMailer
|
|||
if base_url.blank?
|
||||
registrant_domain_delete_confirm_url(domain, token: domain.registrant_verification_token)
|
||||
else
|
||||
"#{base_url}/confirmation/#{domain.name_puny}/#{domain.registrant_verification_token}"
|
||||
"#{base_url}/confirmation/#{domain.name_puny}/delete/#{domain.registrant_verification_token}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -50,7 +50,12 @@ class RegistrantChangeMailer < ApplicationMailer
|
|||
private
|
||||
|
||||
def confirmation_url(domain)
|
||||
registrant_domain_update_confirm_url(domain, token: domain.registrant_verification_token)
|
||||
base_url = ENV['registrant_portal_verifications_base_url']
|
||||
if base_url.blank?
|
||||
registrant_domain_update_confirm_url(domain, token: domain.registrant_verification_token)
|
||||
else
|
||||
"#{base_url}/confirmation/#{domain.name_puny}/change/#{domain.registrant_verification_token}"
|
||||
end
|
||||
end
|
||||
|
||||
def address_processing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue