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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2010-11-10 23:31:54 +00:00
parent 9e30ccd803
commit ae213c99ca
5 changed files with 5 additions and 5 deletions

View File

@@ -320,7 +320,7 @@ function register_new_user( $user_login, $user_email ) {
if ( $errors->get_error_code() )
return $errors;
$user_pass = wp_generate_password();
$user_pass = wp_generate_password( 12, false);
$user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email );
if ( ! $user_id ) {
$errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );