Repp: Contact create: validate identifier

This commit is contained in:
Karl Erik Õunapuu 2020-10-07 12:46:19 +03:00
parent d4628d52ba
commit 01004b8ed4
No known key found for this signature in database
GPG key ID: C9DD647298A34764
5 changed files with 67 additions and 19 deletions

View file

@ -25,7 +25,7 @@ module Epp
@contact = Epp::Contact.new(params[:parsed_frame], current_user.registrar)
collected_data = ::Deserializers::Xml::ContactCreate.new(params[:parsed_frame])
action = Actions::ContactCreate.new(@contact, collected_data.legal_document)
action = Actions::ContactCreate.new(@contact, collected_data.legal_document, collected_data.ident)
if action.call
if !address_processing? && address_given?