From 005815f5c4a83ada37cd76dcd3bcf617f8d04156 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 5 Apr 2015 22:29:56 +0000 Subject: [PATCH] Don't require the MAC address. --- app/provision/index.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/provision/index.php b/app/provision/index.php index a6e7237129..be1bc0b1fc 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -54,14 +54,16 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0); } //prepare the mac address - //normalize the mac address to lower case - $mac = strtolower($mac); - //replace all non hexadecimal values and validate the mac address - $mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac); - if (strlen($mac) != 12) { - echo "invalid mac address"; - exit; - } + if (!isset($_GET['user_id'])) { + //normalize the mac address to lower case + $mac = strtolower($mac); + //replace all non hexadecimal values and validate the mac address + $mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac); + if (strlen($mac) != 12) { + echo "invalid mac address"; + exit; + } + } //get the domain_name and domain_uuid if ($_SESSION['provision']['http_domain_filter']['text'] == "false") {