Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 989

Joomla! 4.x Coding • Re: PHP script coding question

$
0
0
Here is an example from components/com_users/src/Model/RegistrationModel.php:

Code:

namespace Joomla\Component\Users\Site\Model;use Joomla\CMS\Application\ApplicationHelper;use Joomla\CMS\User\UserHelper;...            $data['activation'] = ApplicationHelper::getHash(UserHelper::genRandomPassword());
The function getCryptedPassword has been removed. It is mentioned in the first document below:
JUserHelper::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))
Potential backward compatibility issues in Joomla 4
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



Viewing all articles
Browse latest Browse all 989

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>