Changeset 276 for trunk


Ignore:
Timestamp:
Jul 19, 2007 8:42:09 PM (17 years ago)
Author:
quinn
Message:

Fixed session problem with login form in sidebar using post method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r275 r276  
    537537        // Do we match the user's remote IP at all? Yes, if set in config and not disabled for specific user.
    538538        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;
    540540        } else {
    541541            $app->logMsg(sprintf('User %s exempt from remote_ip match.',
     
    588588            }
    589589            if ($_SESSION['_auth_sql'][$this->_ns]['remote_ip'] != getRemoteAddr() && !$user_in_trusted_network) {
    590                 if ($this->getFeature('match_remote_ip') && !$this->getVal('match_remote_ip_exempt')) {
     590                if ($this->getParam('match_remote_ip') && !$this->get('match_remote_ip_exempt')) {
    591591                    $expire_reasons[] = sprintf('remote_ip not matched (%s != %s)', $_SESSION['_auth_sql'][$this->_ns]['remote_ip'], getRemoteAddr());
    592592                } else {
Note: See TracChangeset for help on using the changeset viewer.