Changeset 276 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Jul 19, 2007 8:42:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r275 r276 537 537 // Do we match the user's remote IP at all? Yes, if set in config and not disabled for specific user. 538 538 if ($this->getParam('match_remote_ip') && !$this->get('match_remote_ip_exempt')) { 539 $remote_ip_is_matched = ( $_SESSION['_auth_sql'][$this->_ns]['remote_ip'] == getRemoteAddr() || $user_in_trusted_network);539 $remote_ip_is_matched = (isset($_SESSION['_auth_sql'][$this->_ns]['remote_ip']) && $_SESSION['_auth_sql'][$this->_ns]['remote_ip'] == getRemoteAddr()) || $user_in_trusted_network; 540 540 } else { 541 541 $app->logMsg(sprintf('User %s exempt from remote_ip match.', … … 588 588 } 589 589 if ($_SESSION['_auth_sql'][$this->_ns]['remote_ip'] != getRemoteAddr() && !$user_in_trusted_network) { 590 if ($this->get Feature('match_remote_ip') && !$this->getVal('match_remote_ip_exempt')) {590 if ($this->getParam('match_remote_ip') && !$this->get('match_remote_ip_exempt')) { 591 591 $expire_reasons[] = sprintf('remote_ip not matched (%s != %s)', $_SESSION['_auth_sql'][$this->_ns]['remote_ip'], getRemoteAddr()); 592 592 } else {
Note: See TracChangeset
for help on using the changeset viewer.