phpBB 3.0.x Remove ACP 2nd authentication login

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Blue Blood »

Remove ACP 2nd authentication login

OPEN adm/index.php
FIND

Code: Select all

// Have they authenticated (again) as an admin for this session?
if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
{
	login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
}
REPLACE-WITH

Code: Select all

// Have they authenticated (again) as an admin for this session?
//if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
//{
//	login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
//}

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Daniel »

Not wanting to be rude about it but why would you want to do this?

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Blue Blood »

2 each its own

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Solidjeuh »

This is very nice! Thank you! :)
I work with .httacces password protection, So it's still safe :)
'' http://www.elated.com/articles/password ... -htaccess/ ''

That second login was irritating me sometimes lol :D

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Steve »

Will affect the sessions table to authenticate you as admin on the forum as well but hey ho! why not just remove the meta refresh and have a instant redirect?

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Steve »

Where did you find this snippet or is it yours?

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Blue Blood »

I found it years ago.... I think on phpBB.com

I only use it when I am working on a mod (localhost)