mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Info request for domain
This commit is contained in:
parent
ed73278620
commit
c34f01aeb3
6 changed files with 116 additions and 0 deletions
|
@ -26,6 +26,12 @@ module Epp::DomainsHelper
|
|||
render '/epp/domains/renew'
|
||||
end
|
||||
|
||||
def info_domain
|
||||
@domain = find_domain
|
||||
|
||||
render '/epp/domains/info'
|
||||
end
|
||||
|
||||
### HELPER METHODS ###
|
||||
private
|
||||
|
||||
|
@ -58,6 +64,13 @@ module Epp::DomainsHelper
|
|||
xml_attrs_present?(@ph, [['name'], ['curExpDate'], ['period']])
|
||||
end
|
||||
|
||||
## INFO
|
||||
def validate_domain_info_request
|
||||
@ph = params_hash['epp']['command']['info']['info']
|
||||
xml_attrs_present?(@ph, [['name']])
|
||||
end
|
||||
|
||||
|
||||
## SHARED
|
||||
def find_domain
|
||||
domain = Domain.find_by(name: @ph[:name])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue