mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Generate contact code manually
Generate contact's code explicitly on contact:create epp request and domain transfer. Remove callback.
This commit is contained in:
parent
cefd310cc0
commit
183c2bb82c
4 changed files with 18 additions and 21 deletions
|
@ -21,14 +21,15 @@ class Epp::ContactsController < EppController
|
|||
@contact = Epp::Contact.new(frame, current_user.registrar)
|
||||
|
||||
@contact.add_legal_file_to_new(frame)
|
||||
|
||||
@response_code = if Contact.address_processing?
|
||||
1000
|
||||
else
|
||||
frame.css('postalInfo addr').size != 0 ? 1100 : 1000
|
||||
end
|
||||
@contact.generate_code
|
||||
|
||||
if @contact.save
|
||||
@response_code = if Contact.address_processing?
|
||||
1000
|
||||
else
|
||||
frame.css('postalInfo addr').size != 0 ? 1100 : 1000
|
||||
end
|
||||
|
||||
render_epp_response '/epp/contacts/create'
|
||||
else
|
||||
handle_errors(@contact)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue