Basic contact check command implementation

This commit is contained in:
Andres Keskküla 2014-07-28 14:30:16 +03:00
parent 65bb5166cc
commit 1f29925004
6 changed files with 106 additions and 0 deletions

View file

@ -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