mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Basic contact check command implementation
This commit is contained in:
parent
65bb5166cc
commit
1f29925004
6 changed files with 106 additions and 0 deletions
|
@ -40,4 +40,17 @@ module Epp::ContactsHelper
|
|||
render '/epp/error'
|
||||
end
|
||||
end
|
||||
|
||||
def check_contact
|
||||
ph = params_hash['epp']['command']['check']['check']
|
||||
@contacts = Contact.check_availability( ph[:id] )
|
||||
|
||||
if @contacts.any?
|
||||
render '/epp/contacts/check'
|
||||
else
|
||||
@code = '2303'
|
||||
@msg = "Object does not exist"
|
||||
render 'epp/error'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue