Invalid token with Joomla custom component - Joomla! Forum - community, help and support
i'm building custom joomla component , added form in template (default.php) file:
then check token in controller with:
but no matter invalid token. have verified hidden type token created in form when view sources on html page. verified, in controller, value of token same:
so if token same value, why on earth exiting invalid token message?
code: select all
echo jhtml::_( 'form.token' ); //add hidden token field prevent csrfthen check token in controller with:
code: select all
jrequest::checktoken() or die( 'invalid token' );but no matter invalid token. have verified hidden type token created in form when view sources on html page. verified, in controller, value of token same:
code: select all
print_r(jutility::gettoken());so if token same value, why on earth exiting invalid token message?
Comments
Post a Comment