Skip to content

Commit

Permalink
Avoid flooding the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustin-FL committed Dec 18, 2020
1 parent f2b03cd commit fda3963
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/etc/inc/captiveportal.inc
Expand Up @@ -2402,12 +2402,6 @@ function portal_allow($clientip, $clientmac, $username, $password = null, $redir
$unsetindexes = array();

foreach ($cpdb as $cpentry) {
captiveportal_logportalauth($cpentry[4], $cpentry[3], $cpentry[2], "Entering for each loop $username = {$username}");
if (isset($config['captiveportal'][$cpzone]['noconcurrentlogins'])) {
captiveportal_logportalauth($cpentry[4], $cpentry[3], $cpentry[2], "config['captiveportal'][$cpzone]['noconcurrentlogins'] exists = set");
} else {
captiveportal_logportalauth($cpentry[4], $cpentry[3], $cpentry[2], "config['captiveportal'][$cpzone]['noconcurrentlogins'] does not exists = NOT set");
}
/* on the same ip */
if ($cpentry[2] == $clientip) {
if (isset($config['captiveportal'][$cpzone]['nomacfilter']) || $cpentry[3] == $clientmac) {
Expand Down

0 comments on commit fda3963

Please sign in to comment.