I am using Magento 2.1.0 and I am trying to redirect a customer to the login page after successful registration.
I make this "Redirect Customer to Account Dashboard after Logging in" set to no, after that, it redirects to the home page, but customer is also logged in.
How to stop the customer from being logged in after registration, and redirect them to the login page?
Best Answer
Simply add following line into your overwrite class.
OR
You can do it using plugin as follows
Vendor/Module/etc/frontend/di.xml
Vendor/Module/Plugin/Customer/Account/CreatePost.php