Changeset 1370
- Timestamp:
- 09/30/08 05:16:09 (2 months ago)
- Files:
-
- trunk/wifidog/src/http.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wifidog/src/http.c
r1346 r1370 138 138 http_callback_status(httpd *webserver, request *r) 139 139 { 140 const s_config *config = config_get_config(); 140 141 char * status = NULL; 141 142 char *buf; 143 144 if (config->httpdusername && 145 (strcmp(config->httpdusername, r->request.authUser) || 146 strcmp(config->httpdpassword, r->request.authPassword))) { 147 debug(LOG_INFO, "Status page requested, forcing authentication"); 148 httpdForceAuthenticate(r, config->httpdrealm); 149 return; 150 } 151 142 152 status = get_status_text(); 143 153 safe_asprintf(&buf, "<pre>%s</pre>", status);
