Here is an example from components/com_users/src/Model/RegistrationModel.php:
The function getCryptedPassword has been removed. It is mentioned in the first document below:
Developer News: Joomla 4 compatibility layer in 3.8
Joomla Magazine: The Backward Compatibility Plugin and why you should switch it off
Code:
namespace Joomla\Component\Users\Site\Model;use Joomla\CMS\Application\ApplicationHelper;use Joomla\CMS\User\UserHelper;... $data['activation'] = ApplicationHelper::getHash(UserHelper::genRandomPassword());
Potential backward compatibility issues in Joomla 4JUserHelper::getCryptedPassword has been removed. Joomla 4 only supports hashing with the native PHP password_hash function (via JUserHelper::hashPassword (available since Joomla 3.2.1))
Developer News: Joomla 4 compatibility layer in 3.8
Joomla Magazine: The Backward Compatibility Plugin and why you should switch it off
Statistics: Posted by toivo — Tue Jul 23, 2024 1:33 am