Skip to main content
Skip table of contents

How to enable/disable user self-registration

  • Starting from version 2024.8.0: the Default User Password Login Page has the registration link disabled.

  • Starting from version 2024.9.0: the Default Select IDP Page has the registration link disabled.

Step 1: Configure Self-Registration in the Admin Portal

  1. Log in to the Admin Portal.

  2. Navigate to Settings > General.

  3. Use the toggle to enable or disable user self-registration:

    image-20241114-151938.png
    • Enabled: Allows users to self-register via the API endpoint.

    • Disabled: Prevents users from self-registering.

This setting is disabled by default in new tenants.

Step 2: Update Templates

If you need to customize templates for user registration, follow these steps:

  1. In the Admin Portal, navigate to Settings > Edit Templates.

  2. Select the template you want to edit.
    Default templates applicable to user registration are these Default User Password Login Page and Default Select IDP Page.

    • The default templates cannot be modified directly. To make changes, you should:

      • Clone the default template to create a custom template.

      • Modify the custom template as needed.

    • Custom Templates:
      If custom templates are already in use, make sure they are associated with these actions:

      • DEFAULT_USER_PASSWORD_LOGIN_PAGE

      • DEFAULT_SELECT_IDP_PAGE

Step 3: Configure Web Components

If you are using the provided web components, you can configure them as follows.

Login Component

The <tb-login> component includes a register-hidden attribute to control the registration link:

  • Default: register-hidden="true" (registration link is hidden).

    HTML
      <tb-login
              inputref="/admin"
              idpcode="<%idpCode%>"
              relaystate="<%relayState%>"
              code="<%code%>"
              captcha-site-key="<%captchaSiteKey%>"
              use-captcha="<%captchaShow%>"
              register-hidden="true"
      ></tb-login>

Authentication Method Selection Component

The <tb-idp-select> component includes a sign-up-hidden attribute to control the sign-up link:

  • Default: sign-up-hidden="true" (sign-up link is hidden).

    CODE
      <tb-idp-select
              code="<%code%>"
              comparison="<%comparison%>"
              relaystate="<%relaystate%>"
              authnmethod="<%authnmethod%>"
              captcha-site-key="<%captchaSiteKey%>"
              use-captcha="<%captchaShow%>"
              sign-up-hidden="true"
      ></tb-idp-select>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.