mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Allow creating domain with custom auth info
This commit is contained in:
parent
eff8dd5d7a
commit
3c934d70e8
2 changed files with 18 additions and 0 deletions
|
@ -152,6 +152,9 @@ class Epp::Domain < Domain
|
|||
at[:tech_domain_contacts_attributes] = tech_domain_contacts_attrs(frame, action)
|
||||
# at[:domain_statuses_attributes] = domain_statuses_attrs(frame, action)
|
||||
|
||||
pw = frame.css('authInfo > pw').text
|
||||
at[:auth_info] = pw if pw.present?
|
||||
|
||||
if new_record?
|
||||
dnskey_frame = frame.css('extension create')
|
||||
else
|
||||
|
@ -419,6 +422,7 @@ class Epp::Domain < Domain
|
|||
registrant_verification_asked!(frame.to_s, current_user.id)
|
||||
end
|
||||
self.deliver_emails = true # turn on email delivery for epp
|
||||
|
||||
errors.empty? && super(at)
|
||||
end
|
||||
# rubocop: enable Metrics/AbcSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue