vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   A security token error while submitting form (https://vborg.vbsupport.ru/showthread.php?t=245048)

tmi 06-22-2010 07:47 AM

A security token error while submitting form
 
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.

HTML Code:

<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


All times are GMT. The time now is 07:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete