diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-05-30 23:00:57 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-06-01 21:31:05 +0200 |
commit | 4698f6928e44a24a7a10ff8b4fed2c1a24cab338 (patch) | |
tree | edc7bba181871a9a87718a5e0662eaa3b0ccd4b6 /phpBB/phpbb/auth/provider/db.php | |
parent | 0a1e21c17fe6181d3826ff88c86e4d040aff447f (diff) | |
download | forums-4698f6928e44a24a7a10ff8b4fed2c1a24cab338.tar forums-4698f6928e44a24a7a10ff8b4fed2c1a24cab338.tar.gz forums-4698f6928e44a24a7a10ff8b4fed2c1a24cab338.tar.bz2 forums-4698f6928e44a24a7a10ff8b4fed2c1a24cab338.tar.xz forums-4698f6928e44a24a7a10ff8b4fed2c1a24cab338.zip |
[ticket/12352] Remove usages of user_pass_convert column
PHPBB3-12352
Diffstat (limited to 'phpBB/phpbb/auth/provider/db.php')
-rw-r--r-- | phpBB/phpbb/auth/provider/db.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/phpbb/auth/provider/db.php b/phpBB/phpbb/auth/provider/db.php index 7307a697ae..142a47247f 100644 --- a/phpBB/phpbb/auth/provider/db.php +++ b/phpBB/phpbb/auth/provider/db.php @@ -78,7 +78,7 @@ class db extends \phpbb\auth\provider\base $username_clean = utf8_clean_string($username); - $sql = 'SELECT user_id, username, user_password, user_passchg, user_pass_convert, user_email, user_type, user_login_attempts + $sql = 'SELECT user_id, username, user_password, user_passchg, user_email, user_type, user_login_attempts FROM ' . USERS_TABLE . " WHERE username_clean = '" . $this->db->sql_escape($username_clean) . "'"; $result = $this->db->sql_query($sql); @@ -180,8 +180,7 @@ class db extends \phpbb\auth\provider\base // Update the password in the users table to the new format $sql = 'UPDATE ' . USERS_TABLE . " - SET user_password = '" . $this->db->sql_escape($hash) . "', - user_pass_convert = 0 + SET user_password = '" . $this->db->sql_escape($hash) . "' WHERE user_id = {$row['user_id']}"; $this->db->sql_query($sql); |