BILLmanager Knowledge Base
en En
es Es
Your feedback is an opportunity for improvement!
Take part in the survey and contribute to the development of the ISPsystem ecosystem.
Take the survey

How to disable the registration button

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:

  1. Connect to the server with the platform via SSH.
  2. 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>
  3. 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"|')
  4.  Restart BILLmanager:

    /usr/local/mgr5/sbin/mgrctl -m billmgr -R

To restore the register button later, delete the added files and restart the platform.


The article was last updated on 02.02.2024. The article was prepared by technical writers of ISPsystem.