Create new module phpbb2_convert
#1
Hello!
Please create new module phpbb2 convert to phpbb3:
Files:
https://github.com/phpbb/phpbb/tree/mast...convertors
phpBB/install/convertors/functions_phpbb20.php
phpBB/install/convertors/convert_phpbb20.php
Code:
PHP Code:
function phpbb_convert_password_hash($hash)
{
global 
$phpbb_container;

/* @var $manager \phpbb\passwords\manager */
$manager $phpbb_container->get('passwords.manager');
$hash $manager->hash($hash'$H$');

return 
'$CP$' $hash;


Example hash:
$CP$phpbb3hash

Signature:
$CP$$H$

Algorithm:
phpass(phpass)
Reply


Messages In This Thread
Create new module phpbb2_convert - by pokosima1999 - 01-26-2022, 07:35 AM