Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2011, 02:09 PM
misuse misuse is offline
 
Join Date: Apr 2003
Location: San Diego, CA USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with remote login

I have a custom cms in front of the /forums/. When logging in from the cms I get the error:
Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Here is the code. I did research on it and found this code somewhere months ago. I whitelisted .domain.com in the vbulletin general options as well.

Help!

<form action="http://www.lll.com/forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)">
<div class="form">
<div class="field">
<input name="vb_login_username" type="text" />
</div>
<div class="field">
<input name="vb_login_password" type="password" />
</div>
<div class="button-login">
<input type="submit" value="" class="submit-login"><br />
<a href="http://www.kkkl.com/forums/register.php">NOT A MEMBER YET?</a><br />
</div>
</div>
</form>
Reply With Quote
  #2  
Old 05-06-2011, 03:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding
Code:
        <input type="hidden" name="do" value="login" />

to your form.
Reply With Quote
  #3  
Old 05-06-2011, 03:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget to add the security token:
HTML Code:
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
Reply With Quote
  #4  
Old 05-06-2011, 04:23 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I hate to disagree with you Lynne, but the OP says a "custom CMS" and this is the vb3 section, so that won't work for several reasons.

Edit: Well OK, unless it actually is using templates, in which case it's only the one reason....

But FWIW I did try out the code from the OP in a static html file and the problem seems to be that the CSRF Protection stuff checks for a security token unless the "do" field is set to "login".
Reply With Quote
  #5  
Old 05-07-2011, 01:01 AM
misuse misuse is offline
 
Join Date: Apr 2003
Location: San Diego, CA USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys/girls. I will try all this out. Never done a custom cms before.

--------------- Added [DATE]1304733953[/DATE] at [TIME]1304733953[/TIME] ---------------

Worked perfect!

<form action="http://www.asdfasf.com/forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)">

<div class="form">

<input type="hidden" name="do" value="login" />

<div class="field">

<input name="vb_login_username" type="text" />

</div>

<div class="field">

<input name="vb_login_password" type="password" />

</div>

<div class="button-login">

<input type="submit" value="" class="submit-login"><br />

<a href="http://www.asdfasdf.com/forums/register.php">NOT A MEMBER YET?</a><br />

</div>

</div>

</form>


Thanks a ton!
Reply With Quote
  #6  
Old 05-07-2011, 03:43 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
OK, I hate to disagree with you Lynne, but the OP says a "custom CMS" and this is the vb3 section, so that won't work for several reasons.
I am wrong sometimes so disagree away! I just want the OP to get the right answer.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:15 PM.


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.04118 seconds
  • Memory Usage 2,216KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete