Navigate to Stores > Configuration > Customers section > Customer Restriction
- Customer Registration
- restriction by email patterns
- set error message
- Customer Login
- restriction by email patterns
- set error message
composer require magekey/module-customer-restriction
php bin/magento maintenance:enable #Enable maintenance mode
php bin/magento setup:upgrade #Updates the Magento software
php bin/magento setup:di:compile #Compile dependencies
php bin/magento setup:static-content:deploy #Deploys static view files
php bin/magento cache:flush #Flush cache
php bin/magento maintenance:disable #Disable maintenance mode
2.1.12
2.2.3
2.3.1