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

Joomla! 5.x Coding • Re: verifyPassword with custom PHP throws error "Class not found"

$
0
0
I think you'll find

Code:

use Joomla\CMS\User\UserHelper
and then

Code:

$isOK = UserHelper::verifyPassword($userpass, $hash, $userid);
(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.

Statistics: Posted by MarkRS — Fri Jun 07, 2024 1:34 pm



Viewing all articles
Browse latest Browse all 1395

Trending Articles



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