NOTE: DONT USE THIS MODULE IN LIVE SITE
The Force Login extension for Magento 2 force customer to login to access pages which is added from admin. You can also force login for specific customer group and storeview.
Now you can set only homepage can access without login from configurations.
Magento Market Place Link: https://marketplace.magento.com/prince-module-forcelogins.html
- Copy the content of the repo to the app/code/Prince/Forcelogin
- Run command: php bin/magento setup:upgrade
- Run command: php bin/magento setup:static-content:deploy
- Now flush cache: php bin/magento cache:flush
Want to contribute to this extension? The quickest way is to open a pull request on GitHub.
If you encounter any problems or bugs, please open an issue on GitHub.