|
From: Andy A <and...@ho...> - 2015-07-24 10:50:54
|
HiI am trying to register a node using curl but I keep getting the same exception. I would like to find a way to register / unregister node without using the captive portal. If anyone has some different suggestions on how to do that, that would be very helpful. I am using the following curl requestcurl -H "Content-Type: application/x-www-form-urlencoded" —data-urlencode '{ "destination_url":"http://www.cnn.com","by_email":"Sign Up", "firstname":"testcurl","lastname":"curluser","email":"testcurl@sample_domain.com","aup_signed":"on"}' https://guest.sample_domain.com/signup?mode=guest-registerI get the following error in the response.Caught exception in captiveportal::Controller::Signup->validateMandatoryFields "Can't use an undefined value as an ARRAY reference at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Signup.pm line 589."Thanks. |