[TUTORIAL] Remove Admin Reauthentication (phpBB3)

Tutorials and How-Tos
User avatar
p455w0rd
Site Admin
Site Admin
Posts: 283
Joined: Wed Sep 14, 2005 12:00 am
Contact:

[TUTORIAL] Remove Admin Reauthentication (phpBB3)

Postby p455w0rd » Sun Feb 24, 2013 2:46 pm

phpBB has always been a fan of double authentication for accessing its administration area. This is annoying as shit, so here's how you disable it:

open /adm/index.php

Find and Delete or Comment out:

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);
}


Then add the following after/in the previous code's place:

Code: Select all

if (empty($user->data['session_admin']) && $auth->acl_get('a_')) {
   $user->data['session_admin'] = 1;
}


Save it and no more 2x login!
Image
Image

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest