From b71571b793c8a022cf0634d5cda6fc9783a3e221 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Sun, 14 Sep 2014 10:04:18 -0700 Subject: [ticket/13065] Fix rehashing of stored password hash in phpBB2 convertor. PHPBB3-13065 --- phpBB/install/convertors/functions_phpbb20.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'phpBB/install/convertors/functions_phpbb20.php') 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; +} -- cgit v1.2.1