Type
magento2-module
Module for Magento 2 module which provide a possibility to disable customer registration on frontend
magento2-module
OSL-3.0
None
None
None
None
None
Module for Magento 2 which provide a possibility disable customer registration on Front End. Create customer from Admin still available
Go to Magento 2 root directory
Enter following commands to install module:
composer require maxmage/disable-registration
Wait while dependencies are updated.
Enter following commands to enable module:
php bin/magento module:enable MaxMage_DisableRegistration
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
Enable the Disable Registration module in Magento Admin under Stores > Configuration > Customers > Disable Registration.
Enabled module automatically disable customer Registration
Default Magento Customer login page with an ability registration, the result before module activation
After activation "Disable Customer Registration" module, for visitors will not available registration block and visit by registration link will be automatically redirected to login page