Disabling the ability to register a new account from the login panel

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
emiliusz
Posts: 5
Joined: 01 Apr 2026, 10:30

Disabling the ability to register a new account from the login panel

Post by emiliusz »

How do I disable the ability to create a new account from the Mantis login window in the mantisbt setting? I've set $g_allow_signup=Off; but the user can still create an account. Where else might the ability to register a new account be stored?
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Disabling the ability to register a new account from the login panel

Post by atrol »

Change to

Code: Select all

$g_allow_signup=OFF;
Please use Search before posting and read the Manual
emiliusz
Posts: 5
Joined: 01 Apr 2026, 10:30

Re: Disabling the ability to register a new account from the login panel

Post by emiliusz »

I set this parameter this way, but the option to create an account from the Mantis login level is still visible
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Disabling the ability to register a new account from the login panel

Post by atrol »

Are you complete sure you changed the right file?
Maybe you have multiple instances running.
Please use Search before posting and read the Manual
emiliusz
Posts: 5
Joined: 01 Apr 2026, 10:30

Re: Disabling the ability to register a new account from the login panel

Post by emiliusz »

I added it in config_inc.php and changed it in config_defaults_inc.php
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Disabling the ability to register a new account from the login panel

Post by atrol »

emiliusz wrote: 10 Apr 2026, 05:23 and changed it in config_defaults_inc.php
Never ever change this file. It's not needed and your changes will be lost when upgrading.

To be complete sure that the right file is changed, add the following line to file config_inc.php

Code: Select all

die ("Hello");
After that, you should see nothing more than "Hello" when opening a page.

Which MantisBT version do you have installed?
Which plugins are installed?
Please use Search before posting and read the Manual
emiliusz
Posts: 5
Joined: 01 Apr 2026, 10:30

Re: Disabling the ability to register a new account from the login panel

Post by emiliusz »

I have version 2.28.1 php version 8.4.20 Mariadb 12.2.2.

Plugins:
Mantis EasyEnter 1.2
Lightbox Integration 1.0
Better status colors 1.0.3
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Disabling the ability to register a new account from the login panel

Post by atrol »

Did you try to add the following line?

Code: Select all

die ("Hello");
Please use Search before posting and read the Manual
Post Reply