In BILLmanager, you cannot disable the registration option, but you can hide the button from the login form using a plugin.
To hide the registration button:
- Connect to the server with the platform via SSH.
-
Create a file /usr/local/mgr5/etc/xml/billmgr_mod_disable-login-register.xml with the following contents:
<?xml version="1.0" encoding="UTF-8"?> <mgrdata> <handler name="disable-login-register-handler" type="xml"> <event name="logon" after="yes"/> </handler> </mgrdata>
-
Replace the register=yes attribute in the data returned for the login with register=no: create an executable script file /usr/local/mgr5/addon/disable-login-register-handler with the following content:
#!/bin/bash echo $(cat | sed -Ee 's|register="yes"| register="no"|')
-
Restart BILLmanager:
/usr/local/mgr5/sbin/mgrctl -m billmgr -R
To restore the register button later, delete the added files and restart the platform.