Customize password login page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Joselyne
Posts: 70
Joined: 14 Dec 2023, 15:59

Customize password login page

Post 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
Attachments
login page.png
login page.png (8.66 KiB) Viewed 12499 times
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Customize password login page

Post by cas »

You can disable sessionvalidation in config/config_inc.php with the followring statement:

Code: Select all

$g_session_validation = OFF;
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Customize password login page

Post by atrol »

Keep in mind that this could be a potential security risk.
https://mantisbt.org/docs/master/en-US/ ... .webserver
Please use Search before posting and read the Manual
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Customize password login page

Post 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
Post Reply