mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
MD5 passwords, including code from Robert Hartman and John Gray.
git-svn-id: https://develop.svn.wordpress.org/trunk@850 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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');
|
||||
?>
|
||||
Reference in New Issue
Block a user