PDA

View Full Version : A security token error while submitting form


tmi
06-22-2010, 07:47 AM
I need to login from an external website, that similar to a single sign on system using vbulletin user account, at the moment i just included vbulletin file "login.php" into my external php script, and i can get all the session and user information.
The problem is when posting a form with that file included, it says "Your submission could not be processed because a security token was missing.", what is the best workaround to avoid this.

Thanks in advance

KDawg08
06-23-2010, 12:11 AM
Post this at vbulletin.com forums and one of the staff could probably pinpoint EXACTLY what the issue is.

I've seen this error alot and it's usually on NULLED vbulletin scripts.

zanthor
06-24-2010, 07:37 PM
I resolved this by adding this tag to my form on the template.

<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

As far as I can tell it's a feature to help improve security by ensuring that forms include data that could only have come from the site hosting them.

tmi
07-16-2010, 06:01 AM
Thanks for the reply, i have another work around of it. Moreover attaching forum login.php required much more wastefull process, so i plan to create user authentication myself, but using the same forum user data. It works! with minor oddity off course :D