Changeset 775 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Oct 29, 2022 4:33:45 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r757 r775 429 429 WHERE " . $this->_params['db_username_column'] . " = '" . $db->escapeString($username) . "' 430 430 "); 431 if ( !$user_data = mysql_fetch_assoc($qid)) {431 if (mysql_num_rows($qid) !== 1 || !$user_data = mysql_fetch_assoc($qid)) { 432 432 $app->logMsg(sprintf('Username %s not found for authentication', $username), LOG_NOTICE, __FILE__, __LINE__); 433 433 return false; … … 601 601 602 602 // Session created! We're logged-in! 603 $app->logMsg(sprintf('â%sâ auth session created for user_id %s (%s): %s=%s', $this->_ns, $this->get('user_id'), $this->get('username'), session_name(), session_id()), LOG_DEBUG, __FILE__, __LINE__); 603 604 return true; 604 605 } … … 612 613 * - remote address is the same as the login remote address 613 614 * 614 * TODO: implement persisten sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence615 * TODO: implement persistent sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence 615 616 * 616 617 * @access public
Note: See TracChangeset
for help on using the changeset viewer.