aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/auth_ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/auth/auth_ldap.php')
-rw-r--r--phpBB/includes/auth/auth_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php
index b8c289c2ab..1b89a02d20 100644
--- a/phpBB/includes/auth/auth_ldap.php
+++ b/phpBB/includes/auth/auth_ldap.php
@@ -34,8 +34,8 @@ function login_ldap(&$username, &$password)
{
@ldap_close($ldap);
- $sql = "SELECT user_id, username, user_password, user_email, user_active
- FROM " . USERS_TABLE . "
+ $sql ='SELECT user_id, username, user_password, user_passchg, user_email, user_active
+ FROM ' . USERS_TABLE . "
WHERE username = '" . $db->sql_escape($username) . "'";
$result = $db->sql_query($sql);