Current time: 03-21-2010, 08:19 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password Encoding
07-02-2009, 11:56 PM
Post: #1
Password Encoding
Hi ! I have a little problem. I want to make a Log In sistem for my WebSite, integrating it with mybb, with other words, I want to use the data of mybb_users table.

The problem came at the password. For the search of users, I encode the password to md5 format, but the password of the database and the input's password doesn't match.

How can I do it? Thanks beforehand, and excuse me for my bad english.
Find all posts by this user
Quote this message in a reply
07-03-2009, 01:46 AM
Post: #2
RE: Password Encoding
Try this.

Joshua Mayer
MyBB Support Team
Visit this user's website Find all posts by this user
Quote this message in a reply
07-03-2009, 10:21 AM
Post: #3
RE: Password Encoding
That's What I need, Thank you very much. But I have another problem, I put all the code correctly into my website. I Logged-In using that form. In the forum, I'm now logged, but when I return to my website, The Log-In form apeared again.

I'm doing something wrong, What ? That's the code I put in a file of my website:

PHP Code:
<?php
chdir
('foro'); // path to MyBB
define("IN_MYBB"1);
require 
'foro/global.php';
?>

<?php

if($mybb->user['uid'])
{
// The user is logged in, say Hi
echo "Hey, $mybbuser[username].<br>
Thanks for logging in."
;
}
else
{
// The user is not logged in, Display the form
echo "<form action='/foro/member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' /><br />
Password: <input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='http://danger-designers.webcindario.com/lol.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br>"
;
}
?>

Is there another method to do my Log-In ? Y see that thread, but I don't understand how I can use that function, salt_password.
Someone can explain it to me? Please.

Thanks beforehand and excuse me for my bad english.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: