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

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

$
0
0
Hello,

I have a custom PHP to verify en username/password.
Until Joomla 4.5.5 it worked fine, after upgrading to Joomla 5.1.1 it throws an error (http 500) with message "Could not find class".

This is the code which worked fine until version 4.5.5

Code:

                        define( '_JEXEC', 1 );            define('JPATH_BASE', '..' );            define( 'DS', DIRECTORY_SEPARATOR );            require_once( JPATH_BASE .DS.'includes'.DS.'defines.php' );            require_once( JPATH_BASE .DS.'includes'.DS.'framework.php' );            jimport('joomla.user.helper');            $isOK = JUserHelper::verifyPassword($userpass, $hash, $userid);
Tx for your help

Davy

Statistics: Posted by wct34 — Fri Jun 07, 2024 7:35 am



Viewing all articles
Browse latest Browse all 2162

Trending Articles



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