phpBB 3.0.x Remove ACP 2nd authentication login

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
Locked
Blue Blood
BBCoder II
BBCoder II
Posts: 20
Joined: 19 Oct 2011, 01:31
BBCodes: 12

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);
//}
Daniel
BBCoder II
BBCoder II
Posts: 29
Joined: 23 May 2010, 06:53

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?
Blue Blood
BBCoder II
BBCoder II
Posts: 20
Joined: 19 Oct 2011, 01:31
BBCodes: 12

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Blue Blood »

2 each its own
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

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
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

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?
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Steve »

Where did you find this snippet or is it yours?
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
Blue Blood
BBCoder II
BBCoder II
Posts: 20
Joined: 19 Oct 2011, 01:31
BBCodes: 12

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)
Locked