User is not connected after account creation

I am using coursepress pro with woocommerce. When a user wants to buy a course, he clics "enroll now", a popup appears and user has to create an account or login to existing account.
Then, user creates an account, clics create account button OR login to his account and clics login button.
In both cases, user is reoriented to the woocommerce cart. BUT the user is not connected (in both cases). User has to login again.
How is it possible to make this popup log in the user, without having to login twice?