Back to overview

Managing User Limits & Registration

Developer Tutorials Published on 19.01.2026

Tutorial: Managing User Limits & Registration

Control the growth of your application and secure access. Learn how to set a maximum number of users or completely disable public registration using the configuration file.

Scenario A: Capping User Growth

If your license or server capacity is limited, you can set a hard limit on the number of registered users. Once this limit is reached, no new users can register or be added.

Step 1: Open Configuration

Access your server files and open the file config.php in the root directory.

Step 2: Set the Limit

Find the constant SETUP_MAX_USERS inside your active setup block (e.g., case 'projektx':).

define('SETUP_MAX_USERS', 50); // Limit to 50 users

Effect: The 51st person trying to register will see a message that the limit has been reached, or the registration button will be hidden automatically.

Scenario B: Disabling Public Registration

For Private / Internal Teams

Sometimes you want an exclusive system where users cannot register themselves. You want to add users manually via the Admin interface or invite them specifically.

The Trick: Set Limit to Current Count

You can effectively "hide" the registration features by setting the limit to the number of currently existing users (usually just 1, the admin).

1. Register the Admin

Register your first user (the administrator) normally while the limit is still 0 (unlimited).

2. Lock the Door

Open config.php and set the limit to 1 (or however many admins you have).

define('SETUP_MAX_USERS', 1);
3. The Result

Since Current Users (1) >= Max Users (1), the system considers the limit reached.

  • The "Register" button disappears from the login page and homepage.
  • Direct access to register.php redirects to the start page.
  • Important: As an Admin, you can still increase this number later in config.php if you need to add more staff manually.