[ticket/16065] Add user_ip to SQL query

PHPBB3-16065
This commit is contained in:
Jakub Senko 2019-05-23 09:14:45 +02:00
parent 8142257e31
commit bba9de8c9c
No known key found for this signature in database
GPG key ID: 6A7C328CD66EC21E

View file

@ -264,7 +264,7 @@ class oauth extends \phpbb\auth\provider\base
} }
// Retrieve the user's account // Retrieve the user's account
$sql = 'SELECT user_id, username, user_password, user_passchg, user_email, user_type, user_login_attempts $sql = 'SELECT user_id, username, user_password, user_passchg, user_email, user_ip, user_type, user_login_attempts
FROM ' . $this->users_table . ' FROM ' . $this->users_table . '
WHERE user_id = ' . (int) $row['user_id']; WHERE user_id = ' . (int) $row['user_id'];
$result = $this->db->sql_query($sql); $result = $this->db->sql_query($sql);