Using Login script to Check against MD5 password.
I am building a user portal system and I want to 'beef' up the security. I created a registration system that has a user verification email tool working great. The registration form also encrypts the user password using MD5 encryption.
I have setup my password column in the table to accept 32 characters.
I have also seen previous posts that mention to use the following code in the login script:
if(isset($_POST['password'])) {
$_POST['password'] = md5($_POST['password']);
}
I have set all that up, but still cannot get the login system to work. It does work, when i remove the code above, and use my login usernames that are not setup as MD5.
From what I can tell, I need to have the login script check the $_POST['password'] against the MD5 password in the DB but cannot figure out how to do that. Any suggestions are greatly appreciated.