Disabling Registration In RetailMan ERP System
RetailMan ERP System can allow new business registration when registration is enabled. In some installations, you may want to disable public registration so outside users cannot create businesses without approval.
Using Superadmin Settings
Use this method if the Superadmin module/settings are available.
- Log in as Superadmin.
- Go to Superadmin > Settings > Application Settings.
- Find the Allow Registration option.
- Uncheck Allow Registration.
- Click Update or Save.
After this, the registration link/page should no longer be available for public users.
Using The .env File
Use this method if you need to change registration from the application configuration file.
- Open the
.envfile in the application root. - Find this setting:
ALLOW_REGISTRATION=true
- Change it to:
ALLOW_REGISTRATION=false
- Save the
.envfile. - Clear application cache if needed.
- Refresh the browser and confirm the registration page/link is no longer available.
To enable registration again, change it back to:
ALLOW_REGISTRATION=true
If You Cannot See .env
The .env file is hidden on many systems because it starts with a dot.
If you are using cPanel or a hosting file manager:
- Open File Manager.
- Enable Show Hidden Files or Show Dotfiles.
- Open the application root folder again.
- Edit
.env, not.env.example.
Disposable Email Validation
If disposable email validation is enabled during business registration, review the registration and email validation settings from Superadmin or the related configuration area before enabling public registrations.