WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/15/2007 05:31:16 AM (14 years ago)
Author:
ryan
Message:

Pluggable random password generator from pishmishy. fixes #5401

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r6363 r6385  
    3636    $user_id = username_exists($user_name);
    3737    if ( !$user_id ) {
    38         $random_password = substr(md5(uniqid(microtime())), 0, 6);
     38        $random_password = wp_generate_password();
    3939        $user_id = wp_create_user($user_name, $random_password, $user_email);
    4040    } else {
Note: See TracChangeset for help on using the changeset viewer.