vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   HELP! My login script doesnt work on MAC (https://vborg.vbsupport.ru/showthread.php?t=119153)

Noel 4 DMB 06-20-2006 02:08 PM

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?

calorie 06-21-2006 03:20 PM

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?


Noel 4 DMB 06-21-2006 06:11 PM

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.

Princeton 06-21-2006 06:53 PM

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>



All times are GMT. The time now is 06:11 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.03076 seconds
  • Memory Usage 1,732KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_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