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 06-20-2006, 03:08 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default HELP! My login script doesnt work on MAC

And it appears to happen when there are spaces in the user name. Here is my form:

PHP Code:
     <table border=0 cellspacing=2 cellpadding=2 colspan=3 class=smallText style="color: #999DB8;">
      <tr>
       <script type="text/javascript" src="/forums/clientscript/vbulletin_md5.js"></script>
       <form name="vblogin" action="/forums/login.php" method=post onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
       <td valign=top align=right>username:<br><input type="text" style="width: 80px;" class=input_login name="vb_login_username" id="navbar_username" accesskey="u"></td>
       <td valign=top align=right>password:<br><input type="password" style="width: 80px;" class=input_login name="vb_login_password" accesskey="p"></td>       
       <td valign=bottom align=right>
       <input class=input_login type=submit value="Login" accesskey="s" style="margin-bottom: 2px; padding: 0px; text-align: center;">
       <input type="hidden" name="cookieuser" value="1" id="cb_cookieuser_navbar" accesskey="c">
       <input type="hidden" name="url" value="<? echo $_SERVER['REQUEST_URI']; ?>"> 
       <input type="hidden" name="s" value="" />
       <input type="hidden" name="do" value="login" />        
       <input type="hidden" name="vb_login_md5password" />
       <input type="hidden" name="vb_login_md5password_utf" />
       </td>
       </form>
      </tr>
     </table>
What the heck is wrong?
Reply With Quote
  #2  
Old 06-21-2006, 04:20 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this only happen on MAC with spaces in username? Perhaps try printing out the username by temporarily adding the line in bold to the login.php file:
Code:
	echo htmlspecialchars_uni($vbulletin->GPC['vb_login_username']); exit();

	// can the user login?
Reply With Quote
  #3  
Old 06-21-2006, 07:11 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sadly, it happens on all macs. Every mac user that has come to my site i've had to change their password for them in the admin control panel.

It appears as though the javascript in the registration process does not properly hash their password.
Reply With Quote
  #4  
Old 06-21-2006, 07:53 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this ...
HTML Code:
<script type="text/javascript" src="/forums/clientscript/vbulletin_md5.js"></script>
<form name="vblogin" action="/forums/login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<table border="0" cellspacing="2" cellpadding="2" class="smallText" style="color: #999DB8">
	<tr>
		<td valign="top" align="right">username:<br /><input type="text" style="width: 80px;" class="input_login" name="vb_login_username" id="navbar_username" accesskey="u" /></td>
		<td valign="top" align="right">password:<br /><input type="password" style="width: 80px;" class="input_login" name="vb_login_password" accesskey="p" /></td>       
		<td valign="bottom" align="right">
		<input class="input_login" type="submit" value="Login" accesskey="s" style="margin-bottom: 2px; padding: 0px; text-align: center;" />
		</td>
	</tr>
</table>
<input type="hidden" name="cookieuser" value="1" id="cb_cookieuser_navbar" accesskey="c" />
<input type="hidden" name="url" value="<? echo $_SERVER['REQUEST_URI']; ?>" /> 
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />        
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
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 07:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04226 seconds
  • Memory Usage 2,205KB
  • 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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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