mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13065] Fix rehashing of stored password hash in phpBB2 convertor.
PHPBB3-13065
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user