mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Blank domain name fix
This commit is contained in:
parent
34a43af572
commit
080d1b718a
1 changed files with 8 additions and 2 deletions
|
@ -13,8 +13,8 @@ module Epp::DomainsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_domain
|
def check_domain
|
||||||
ph = params_hash['epp']['command']['check']['check']
|
names = parsed_frame.css('name').map(&:text)
|
||||||
@domains = Epp::EppDomain.check_availability(ph[:name])
|
@domains = Epp::EppDomain.check_availability(names)
|
||||||
render '/epp/domains/check'
|
render '/epp/domains/check'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -119,6 +119,12 @@ module Epp::DomainsHelper
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
## CHECK
|
||||||
|
|
||||||
|
def validate_domain_check_request
|
||||||
|
epp_request_valid?('name')
|
||||||
|
end
|
||||||
|
|
||||||
## CREATE
|
## CREATE
|
||||||
def validate_domain_create_request
|
def validate_domain_create_request
|
||||||
ret = true
|
ret = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue