Page 1 of 2
Disabling the ability to register a new account from the login panel
Posted: 01 Apr 2026, 10:32
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?
Re: Disabling the ability to register a new account from the login panel
Posted: 04 Apr 2026, 21:00
by atrol
Re: Disabling the ability to register a new account from the login panel
Posted: 07 Apr 2026, 07:48
by emiliusz
I set this parameter this way, but the option to create an account from the Mantis login level is still visible
Re: Disabling the ability to register a new account from the login panel
Posted: 09 Apr 2026, 16:41
by atrol
Are you complete sure you changed the right file?
Maybe you have multiple instances running.
Re: Disabling the ability to register a new account from the login panel
Posted: 10 Apr 2026, 05:23
by emiliusz
I added it in config_inc.php and changed it in config_defaults_inc.php
Re: Disabling the ability to register a new account from the login panel
Posted: 11 Apr 2026, 16:30
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
After that, you should see nothing more than "Hello" when opening a page.
Which MantisBT version do you have installed?
Which plugins are installed?
Re: Disabling the ability to register a new account from the login panel
Posted: 13 Apr 2026, 06:22
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
Re: Disabling the ability to register a new account from the login panel
Posted: 13 Apr 2026, 15:41
by atrol
Did you try to add the following line?
Re: Disabling the ability to register a new account from the login panel
Posted: 14 Apr 2026, 05:49
by emiliusz
atrol wrote: 13 Apr 2026, 15:41
Did you try to add the following line?
When I turned it on, instead of the login window I had "Hello".
Re: Disabling the ability to register a new account from the login panel
Posted: 14 Apr 2026, 15:59
by atrol
Do you use LDAP for authentication? (check setting $g_login_method for that)
Did you disable email email notifications? (check setting $g_enable_email_notification for that)
Re: Disabling the ability to register a new account from the login panel
Posted: 15 Apr 2026, 05:26
by emiliusz
atrol wrote: 14 Apr 2026, 15:59
Do you use LDAP for authentication? (check setting $g_login_method for that)
Did you disable email email notifications? (check setting $g_enable_email_notification for that)
I have it turned on $g_login_method = MD5; and $g_enable_email_notification = ON;
Re: Disabling the ability to register a new account from the login panel
Posted: 16 Apr 2026, 20:07
by atrol
Please attach a screenshot of your login page after changing line 276 of login_page.php to
Code: Select all
echo '<a class="back-to-login-link pull-left" href="signup_page.php">', lang_get( 'signup_link' ) . ":" . config_get_global( 'allow_signup' ), '</a>';
Re: Disabling the ability to register a new account from the login panel
Posted: 17 Apr 2026, 05:25
by emiliusz
atrol wrote: 16 Apr 2026, 20:07
Please attach a screenshot of your login page after changing line 276 of login_page.php to
Code: Select all
echo '<a class="back-to-login-link pull-left" href="signup_page.php">', lang_get( 'signup_link' ) . ":" . config_get_global( 'allow_signup' ), '</a>';
I commented it out and now it's not showing up. But it'll probably be overwritten after the update. When I changed it, your suggestion resulted in an error that the page wasn't responding.
Re: Disabling the ability to register a new account from the login panel
Posted: 18 Apr 2026, 14:06
by atrol
emiliusz wrote: 17 Apr 2026, 05:25 When I changed it, your suggestion resulted in an error that the page wasn't responding.
That's strange.
Please try again and check what is in your web server and / or PHP error log.
Re: Disabling the ability to register a new account from the login panel
Posted: 20 Apr 2026, 07:11
by emiliusz
atrol wrote: 18 Apr 2026, 14:06
emiliusz wrote: 17 Apr 2026, 05:25 When I changed it, your suggestion resulted in an error that the page wasn't responding.
That's strange.
Please try again and check what is in your web server and / or PHP error log.
I just added the code you wrote to the line and it says Create a new account:1 again. There's nothing in the php_error.log