WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/02/2007 05:14:11 AM (12 years ago)
Author:
ryan
Message:

Hash passwords with phpass. Add wp_check_pasword() and wp_hash_password() functions. Props pishmishy. see #2394

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/registration.php

    r6346 r6350  
    5555    } else {
    5656        $update = false;
    57         // Password is not hashed when creating new user.
    58         $user_pass = md5($user_pass);
     57        // Hash the password
     58        $user_pass = wp_hash_password($user_pass);
    5959    }
    6060
     
    157157    if ( ! empty($userdata['user_pass']) ) {
    158158        $plaintext_pass = $userdata['user_pass'];
    159         $userdata['user_pass'] = md5($userdata['user_pass']);
     159        $userdata['user_pass'] = wp_hash_password($userdata['user_pass']);
    160160    }
    161161
Note: See TracChangeset for help on using the changeset viewer.