Sometimes you may need to auto login a wordpress user without using Password and there are multiple ways to do it. Let us see in the below post how to login a wordpress user without asking them to enter the password
wp_set_current_user( $user_id, $user->user_login );
wp_set_auth_cookie( $user_id );
do_action( 'wp_login', $user->user_login ); wp_redirect(get_home_url());
The above code will login a user with a user id and redirect to the home url of the wordpress