Ignore:
Timestamp:
Oct 27, 2019 12:22:59 AM (5 years ago)
Author:
anonymous
Message:

Add IPIntelligenceBadIP function. Fix PHP notice for invlid IP in canonicalIPAddr(). Use CF-Connecting-IP header in getRemoteIP().

File:
1 edited

Legend:

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

    r692 r706  
    705705            if (mysql_affected_rows($db->getDBH()) > 0) {
    706706                // User record still exists in DB. Do this to ensure user was not delete from DB between accesses. Notice "+ 1" in SQL above to ensure record is modified.
     707                $app->logMsg(sprintf('Session authenticated for user_id %s (%s).', $this->get('user_id'), $this->get('username')), LOG_DEBUG, __FILE__, __LINE__);
     708                // TODO: This auth check doesn't match parity when calling isLoggedIn($user_id) with a user_id, because the latter checks last_login_datetime in DB, and the former only checks SESSION. These two can be out-of-sync after loading DB via sdbdown.
    707709                return true;
    708710            } else {
Note: See TracChangeset for help on using the changeset viewer.