WordPress.org

Make WordPress Core

Changeset 16284


Ignore:
Timestamp:
11/10/2010 11:31:54 PM (8 years ago)
Author:
westi
Message:

Generate Human Readable passwords as they are much more userfriendly. Fixes #13324 props Otto42.

Location:
trunk
Files:
5 edited

Legend:

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

    r15670 r16284  
    6565    $email_password = false;
    6666    if ( !$user_id && empty($user_password) ) {
    67         $user_password = wp_generate_password();
     67        $user_password = wp_generate_password( 12, false );
    6868        $message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.');
    6969        $user_id = wp_create_user($user_name, $user_password, $user_email);
  • trunk/wp-admin/network/site-new.php

    r16272 r16284  
    5858    $user_id = email_exists($email);
    5959    if ( !$user_id ) { // Create a new user with a random password
    60         $password = wp_generate_password();
     60        $password = wp_generate_password( 12, false );
    6161        $user_id = wpmu_create_user( $domain, $password, $email );
    6262        if ( false == $user_id )
  • trunk/wp-admin/network/user-new.php

    r16272 r16284  
    3232        wp_die( __( 'Missing email.' ) );
    3333
    34     $password = wp_generate_password();
     34    $password = wp_generate_password( 12, false);
    3535    $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) );
    3636
  • trunk/wp-includes/ms-functions.php

    r16213 r16284  
    780780    $user_login = $wpdb->escape($signup->user_login);
    781781    $user_email = $wpdb->escape($signup->user_email);
    782     $password = wp_generate_password();
     782    $password = wp_generate_password( 12, false );
    783783
    784784    $user_id = username_exists($user_login);
  • trunk/wp-login.php

    r16066 r16284  
    321321        return $errors;
    322322
    323     $user_pass = wp_generate_password();
     323    $user_pass = wp_generate_password( 12, false);
    324324    $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email );
    325325    if ( ! $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.