aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-10-27 20:57:31 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-10-27 20:57:31 +0100
commitb295fa4f4f5d74deec478e5ddb74c1975a32421c (patch)
treebe5073aab0a8bdf42a9c510b6048b77e5e1c060b
parent6cc5160d6044a90636c804a14de5c333ef2f123d (diff)
downloadforums-b295fa4f4f5d74deec478e5ddb74c1975a32421c.tar
forums-b295fa4f4f5d74deec478e5ddb74c1975a32421c.tar.gz
forums-b295fa4f4f5d74deec478e5ddb74c1975a32421c.tar.bz2
forums-b295fa4f4f5d74deec478e5ddb74c1975a32421c.tar.xz
forums-b295fa4f4f5d74deec478e5ddb74c1975a32421c.zip
[ticket/13225] Prefix converted passwords with $CP$ in phpBB 3.0.5-RC1
PHPBB3-13225
-rw-r--r--phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php b/phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php
index cac9c58a7c..2cc7786046 100644
--- a/phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php
+++ b/phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php
@@ -68,7 +68,7 @@ class release_3_0_5_rc1 extends \phpbb\db\migration\migration
if (strlen($row['user_password']) == 32)
{
$sql_ary = array(
- 'user_password' => $passwords_manager->hash($row['user_password'], 'passwords.driver.salted_md5'),
+ 'user_password' => '$CP$' . $passwords_manager->hash($row['user_password'], 'passwords.driver.salted_md5'),
);
$this->sql_query('UPDATE ' . $this->table_prefix . 'users SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . ' WHERE user_id = ' . $row['user_id']);