aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors/functions_phpbb20.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-09-14 10:04:18 -0700
committerCesar G <prototech91@gmail.com>2014-09-14 10:04:18 -0700
commitb71571b793c8a022cf0634d5cda6fc9783a3e221 (patch)
tree151730b58ca77921cea71ae6aa4a41e19a9dffb1 /phpBB/install/convertors/functions_phpbb20.php
parenta45df1d8407082c11a61de36b4408e62049062a0 (diff)
downloadforums-b71571b793c8a022cf0634d5cda6fc9783a3e221.tar
forums-b71571b793c8a022cf0634d5cda6fc9783a3e221.tar.gz
forums-b71571b793c8a022cf0634d5cda6fc9783a3e221.tar.bz2
forums-b71571b793c8a022cf0634d5cda6fc9783a3e221.tar.xz
forums-b71571b793c8a022cf0634d5cda6fc9783a3e221.zip
[ticket/13065] Fix rehashing of stored password hash in phpBB2 convertor.
PHPBB3-13065
Diffstat (limited to 'phpBB/install/convertors/functions_phpbb20.php')
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index 01447a6232..817c007274 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -1969,3 +1969,13 @@ function phpbb_add_notification_options($user_notify_pm)
$sql = $db->sql_multi_insert(USER_NOTIFICATIONS_TABLE, $rows);
}
+
+function phpbb_convert_password_hash($hash)
+{
+ global $phpbb_container;
+
+ $manager = $phpbb_container->get('passwords.manager');
+ $hash = $manager->hash($hash, '$H$');
+
+ return '$CP$' . $hash;
+}