I think you'll findand then(ie get rid of the "J" prefix) is what you want instead of your import line. I haven't tried it, you might find you need to create a new UserHelper class to use the method you want.
At some point you do need to use new constructs rather than just hope old ones will keep working. This is that point.
Code:
use Joomla\CMS\User\UserHelper
Code:
$isOK = UserHelper::verifyPassword($userpass, $hash, $userid);
At some point you do need to use new constructs rather than just hope old ones will keep working. This is that point.
Statistics: Posted by MarkRS — Fri Jun 07, 2024 1:34 pm