MD5 passwords, including code from Robert Hartman and John Gray.

git-svn-id: http://svn.automattic.com/wordpress/trunk@850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-02-09 09:56:57 +00:00
parent 8fe9179d1a
commit bb09ce7e76
6 changed files with 46 additions and 40 deletions

View File

@@ -75,7 +75,7 @@ case 'update':
if ($HTTP_POST_VARS["pass1"] != $HTTP_POST_VARS["pass2"])
die ("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.");
$newuser_pass = $HTTP_POST_VARS["pass1"];
$updatepassword = "user_pass='$newuser_pass', ";
$updatepassword = "user_pass=MD5('$newuser_pass'), ";
setcookie("wordpresspass_".$cookiehash,md5($newuser_pass),time()+31536000);
}
@@ -344,4 +344,5 @@ break;
}
/* </Profile | My Profile> */
include('admin-footer.php') ?>
include('admin-footer.php');
?>