Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11898

Unable to login to ACP on AREA51

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: ACP
    • Labels:
      None

      Description

      I can authenticate for the user login. But when I try to login to the ACP it refreshes back to the board index without authenticating the ACP login.

        Activity

        Hide
        EXreaction EXreaction [X] (Inactive) added a comment -

        If you could, please save the source of the ACP login page and send it to me (it'll have session identifiers, so please send over PM or log out and log in again after putting it up publicly).

        Show
        EXreaction EXreaction [X] (Inactive) added a comment - If you could, please save the source of the ACP login page and send it to me (it'll have session identifiers, so please send over PM or log out and log in again after putting it up publicly).
        Hide
        nickvergessen Joas Schilling added a comment -

        Just try it yourself, you should be an admin on area51 aswell

        Show
        nickvergessen Joas Schilling added a comment - Just try it yourself, you should be an admin on area51 aswell
        Hide
        DavidIQ David Colón added a comment -

        The issue is in the admin login form:

        <form action="./../index.php?sid=12345something" method="post" id="login" data-focus="password_1aa7f06e2dd205488b86ad5ba617ac2c">

        It is posting to the root index.php, not adm/index.php

        Show
        DavidIQ David Colón added a comment - The issue is in the admin login form: <form action="./../index.php?sid=12345something" method="post" id="login" data-focus="password_1aa7f06e2dd205488b86ad5ba617ac2c"> It is posting to the root index.php, not adm/index.php
        Hide
        EXreaction EXreaction [X] (Inactive) added a comment -

        I never knew I was an admin at area51.

        I see the form action is wrong but the redirect is correct. That is very odd...

        Show
        EXreaction EXreaction [X] (Inactive) added a comment - I never knew I was an admin at area51. I see the form action is wrong but the redirect is correct. That is very odd...
        Hide
        nickvergessen Joas Schilling added a comment -

        well the normal index.php will just not process the form... (quicklogin uses ucp.php as form action)

        Show
        nickvergessen Joas Schilling added a comment - well the normal index.php will just not process the form... (quicklogin uses ucp.php as form action)
        Hide
        nickvergessen Joas Schilling added a comment -

        includes/functions.php

        global $phpbb_dispatcher, $request, $phpbb_container, $adm_relative_path;

        should be:

        global $phpbb_dispatcher, $request, $phpbb_container, $phpbb_admin_path;

        and

        	'S_LOGIN_ACTION'	=> ((!defined('ADMIN_START')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login') : append_sid("{$phpbb_root_path}{$adm_relative_path}index.$phpEx", false, true, $user->session_id)),

        should be:

        	'S_LOGIN_ACTION'	=> ((!defined('ADMIN_START')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login') : append_sid("{$phpbb_admin_path}index.$phpEx", false, true, $user->session_id)),

        Show
        nickvergessen Joas Schilling added a comment - includes/functions.php global $phpbb_dispatcher, $request, $phpbb_container, $adm_relative_path; should be: global $phpbb_dispatcher, $request, $phpbb_container, $phpbb_admin_path; and 'S_LOGIN_ACTION' => ((!defined('ADMIN_START')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login') : append_sid("{$phpbb_root_path}{$adm_relative_path}index.$phpEx", false, true, $user->session_id)), should be: 'S_LOGIN_ACTION' => ((!defined('ADMIN_START')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login') : append_sid("{$phpbb_admin_path}index.$phpEx", false, true, $user->session_id)),
        Hide
        EXreaction EXreaction [X] (Inactive) added a comment -

        Not sure how it's working at all then in some places.

        $adm_relative_path should be $phpbb_adm_relative_path, but this should use $phpbb_admin_path.

        Show
        EXreaction EXreaction [X] (Inactive) added a comment - Not sure how it's working at all then in some places. $adm_relative_path should be $phpbb_adm_relative_path, but this should use $phpbb_admin_path.
        Hide
        bonelifer bonelifer added a comment -

        The fix seems to be working for me.

        Show
        bonelifer bonelifer added a comment - The fix seems to be working for me.

          People

          • Assignee:
            EXreaction EXreaction [X] (Inactive)
            Reporter:
            bonelifer bonelifer
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development