aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/oauth.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2019-05-23 09:14:45 +0200
committerJakub Senko <jakubsenko@gmail.com>2019-05-23 09:14:45 +0200
commitbba9de8c9cdcb612936e165150e1440c188c8d3e (patch)
treef12721bc576488b5d257658196379e51227b1680 /phpBB/phpbb/auth/provider/oauth/oauth.php
parent8142257e31d3e72784e26e337afffbbc5260ec37 (diff)
downloadforums-bba9de8c9cdcb612936e165150e1440c188c8d3e.tar
forums-bba9de8c9cdcb612936e165150e1440c188c8d3e.tar.gz
forums-bba9de8c9cdcb612936e165150e1440c188c8d3e.tar.bz2
forums-bba9de8c9cdcb612936e165150e1440c188c8d3e.tar.xz
forums-bba9de8c9cdcb612936e165150e1440c188c8d3e.zip
[ticket/16065] Add user_ip to SQL query
PHPBB3-16065
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 93419d2915..b16e74ad34 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -264,7 +264,7 @@ class oauth extends \phpbb\auth\provider\base
}
// 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 . '
WHERE user_id = ' . (int) $row['user_id'];
$result = $this->db->sql_query($sql);