Test Accounts

There are 3 test accounts.

Username: Test
Password: test123

Username: Test 2
Password: testuser2

Username: Test 3
Password: testuser3

Remove ACP 2nd authentication login

Useful little modifications. I did not make any of them

Moderator: Jessica

Forum rules
There will be no more new snippets here. All snippets are posted here: http://chenschool.elementfx.com/phpBB3/kb.php?c=1

Remove ACP 2nd authentication login

Postby Jessica » March 17th, 2012, 9:19 pm

This tid-bit will remove the 2nd ACP Authentication. If you are logged in as the admin, you can click the Administrator Control Panel and be redirected there without supplying a 2nd 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);
    //}


User avatar
Jessica
Founder
 
Topic author
Posts: 97
Topics: 39
Blog entries: 5
Joined: October 27th, 2011, 4:30 pm
Likes: 7 posts
Liked in: 24 posts
Images: 133

Return to Snippets

Who is online

Users browsing this forum: No registered users and 1 guest

x

#{title}

#{text}