well because of the random func on the end, is this even possible? Will a new session be generated once I navigated to the forum regardless of what I insert into the table and set the cookie to?
It appears that after creating the above data, that navigating to the forum creates a new session for a non-logged in user, and overwrites the cookie for the logged in user (or rather, user attempting to log in externally). Therefore, am I safe in assuming that this isnt possible?
--------------- Added at 16:20 ---------------
Quote:
Originally Posted by Analogpoint
Why don't you do this.
1. Copy the login form HTML from the navbar template.
2. Replace all the variables ($vbphrase etc), with plain text
3. Add the absolute url to /clientscript/vbulletin_md5.js to make sure it gets included.
4. Add the absolute url to the form's action 'login.php?do=login'
You're done, it'll log you in and redirect you back to where you were.
|
doesnt work. heres my code (found at the bottom of my website's login routiene):
PHP Code:
echo '<form action="http://forum.mysite.com/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<script type="text/javascript" src="http://forum.mysite.com/clientscript/vbulletin_md5.js?v=368"></script>
<input type="submit" value="Log in" accesskey="s" />
<input type="hidden" name="s" value="1" />
<input type="hidden" name="vb_login_password" value="' . $user_txtpassword . '" />
<input type="hidden" name="vb_login_username" value="' . $user_name . '" />
<input type="hidden" name="cookieuser" value="1" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>';
runs through it, does nothing.
has anyone here gotten external login to work properly?