|
@@ -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) {
|