public function otpcheckAjax()
public static function otpcheckAjax()
public static function otpcheckAjax()
{
$response = new stdClass();
That will need to be updated to:
[code] public static function otpcheckAjax()
{
$modId = JFactory::getApplication()->input->get('mod_id');
$mod = JModuleHelper::getModuleById($modId);
$params = new Registry();
$params->loadString($mod->params);
$helper = new ModScloginHelper($params);
$response = new stdClass();
use Joomla\Registry\Registry;
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.