mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Mailer: Enable registrant confirm actions via REST
This commit is contained in:
parent
6e1a836c97
commit
4eaa8065ba
3 changed files with 10 additions and 1 deletions
|
@ -53,7 +53,12 @@ class DomainDeleteMailer < ApplicationMailer
|
||||||
private
|
private
|
||||||
|
|
||||||
def confirmation_url(domain)
|
def confirmation_url(domain)
|
||||||
registrant_domain_delete_confirm_url(domain, token: domain.registrant_verification_token)
|
base_url = ENV['registrant_portal_verifications_base_url']
|
||||||
|
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}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def forced_email_from
|
def forced_email_from
|
||||||
|
|
|
@ -87,6 +87,9 @@ sk_digi_doc_service_name: 'Testimine'
|
||||||
registrant_api_base_url:
|
registrant_api_base_url:
|
||||||
registrant_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with commas
|
registrant_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with commas
|
||||||
|
|
||||||
|
# Base URL (inc. https://) of REST registrant portal
|
||||||
|
# Leave blank to use internal registrant portal
|
||||||
|
registrant_portal_verifications_base_url: ''
|
||||||
#
|
#
|
||||||
# MISC
|
# MISC
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ Rails.application.routes.draw do
|
||||||
resource :registry_lock, only: %i[create destroy]
|
resource :registry_lock, only: %i[create destroy]
|
||||||
end
|
end
|
||||||
resources :contacts, only: %i[index show update], param: :uuid
|
resources :contacts, only: %i[index show update], param: :uuid
|
||||||
|
resources :companies, only: %i[index]
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :auctions, only: %i[index show update], param: :uuid
|
resources :auctions, only: %i[index show update], param: :uuid
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue