Page 1 of 1

Customize password login page

Posted: 03 Jun 2024, 13:43
by Joselyne
Hello everyone,

I would 'like to ask if it is possible not to check the box related to "Only allow your session to be used from this IP address" on the login password page".

See file in attachment.

Thanks

Re: Customize password login page

Posted: 03 Jun 2024, 15:31
by cas
You can disable sessionvalidation in config/config_inc.php with the followring statement:

Code: Select all

$g_session_validation = OFF;

Re: Customize password login page

Posted: 03 Jun 2024, 18:25
by atrol
Keep in mind that this could be a potential security risk.
https://mantisbt.org/docs/master/en-US/ ... .webserver

Re: Customize password login page

Posted: 04 Jun 2024, 06:44
by cas
In case you want to keep session validation active and you want the checkbox to be unchecked, you would need to make a change to login_password_page.php.
find the following line:

Code: Select all

layout_login_page_begin();
Add the following line just the before that line

Code: Select all

$t_default_secure_session = OFF; 
Downside of this that it needs to be repeated which each upgrade of Mantis