Skip to content
Snippets Groups Projects
Commit c9087ca8 authored by Imran Hussain's avatar Imran Hussain
Browse files

isValidMACAddr() now checks and does stuff instead just true all the time.

parent dbd14ff0
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
// e-mail, password validation functions
require_once("../lib/validation.php");
require_once("Net/MAC.php");
include_once("../lib/date.php");
......@@ -98,8 +99,11 @@ function changeGuestnetDetails($wiredMAC) {
// Checks whether the given string mac address is valid
function isValidMACAddr($mac) {
// Put code here if needed
return TRUE;
if (Net_MAC::check($mac)) {
return TRUE;
}else{
return FALSE;
}
}
// Returns the users GuestNet MAC Address if they have one and false otherwise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment