Changeset 115
- Timestamp:
- 05/06/04 19:01:04 (9 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog/src/http.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/src/http.c
r113 r115 44 44 httpdOutput(webserver, "Internal error occurred"); 45 45 } else { 46 / / Re-direct them to auth server46 /* Re-direct them to auth server */ 47 47 httpdSetResponse(webserver, "307 Please authenticate yourself here"); 48 48 httpdAddHeader(webserver, newlocation); … … 81 81 82 82 if ((token = httpdGetVariableByName(webserver, "token"))) { 83 / / They supplied variable "token"83 /* They supplied variable "token" */ 84 84 if (!(mac = arp_get(webserver->clientAddr))) { 85 / / We could not get their MAC address85 /* We could not get their MAC address */ 86 86 debug(LOG_ERR, "Failed to retrieve MAC address for " 87 87 "ip %s", webserver->clientAddr); … … 89 89 "address"); 90 90 } else { 91 / / We have their MAC address91 /* We have their MAC address */ 92 92 93 93 pthread_mutex_lock(&nodes_mutex); … … 123 123 } 124 124 } else { 125 / / They did not supply variable "token"125 /* They did not supply variable "token" */ 126 126 httpdOutput(webserver, "Invalid token"); 127 127 }
