I changed <?php $initial_password = wp_generate_password( 24 ); ?> to <?php $initial_password = wp_generate_password( 0 ); ?>

Now it doesn't change the password when user updates profile. But when...