Browse Source

Update FEATURE_ENFORCE_LOCATIONS comment to reflect new feature flag.

ngxez 8 years ago
parent
commit
03d0c70dad
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/login/index.php

+ 1
- 1
sections/login/index.php View File

@@ -274,7 +274,7 @@ else {
274 274
                   $DB->query("SELECT ASN FROM geoip_asn WHERE StartIP<=INET6_ATON('$_SERVER[REMOTE_ADDR]') AND EndIP>=INET6_ATON('$_SERVER[REMOTE_ADDR]')");
275 275
                   list($CurrentASN) = $DB->next_record();
276 276
 
277
-                  // if we are in DEBUG_MODE, no need to enforce location restriction
277
+                  // if FEATURE_ENFORCE_LOCATIONS is enabled, require users to confirm new logins
278 278
                   if (!in_array($CurrentASN, $PastASNs) && FEATURE_ENFORCE_LOCATIONS) {
279 279
                     // Never logged in from this location before
280 280
                     if ($Cache->get_value('new_location_'.$UserID.'_'.$CurrentASN) !== true) {

Loading…
Cancel
Save