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/user.php

    r6346 r6350  
    1717function user_pass_ok($user_login,$user_pass) {
    1818    $userdata = get_userdatabylogin($user_login);
    19 
    20     return (md5($user_pass) == $userdata->user_pass);
     19    return wp_check_password($user_pass, $userdata->user_pass);
    2120}
    2221
Note: See TracChangeset for help on using the changeset viewer.