mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Hash passwords with phpass. Add wp_check_pasword() and wp_hash_password() functions. Props pishmishy. see #2394
git-svn-id: https://develop.svn.wordpress.org/trunk@6350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -16,8 +16,7 @@ function get_usernumposts($userid) {
|
||||
// TODO: xmlrpc only. Maybe move to xmlrpc.php.
|
||||
function user_pass_ok($user_login,$user_pass) {
|
||||
$userdata = get_userdatabylogin($user_login);
|
||||
|
||||
return (md5($user_pass) == $userdata->user_pass);
|
||||
return wp_check_password($user_pass, $userdata->user_pass);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user