mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14896] Do not overwrite login when finishing install
Otherwise the user will be "logged in" again as guest user which will prevent any redirectiong to the ACP after the installation. PHPBB3-14896
This commit is contained in:
parent
129bfd5e62
commit
829e147504
1 changed files with 11 additions and 5 deletions
|
@ -243,12 +243,18 @@ class installer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Start session and try to apply session id
|
// Start session if not installing and get user object
|
||||||
$auth = $this->container_factory->get('auth');
|
// to allow redirecting to ACP
|
||||||
$user = $this->container_factory->get('user');
|
$user = $this->container_factory->get('user');
|
||||||
$user->session_begin();
|
if (!isset($module) || !($module instanceof \phpbb\install\module\install_finish\module))
|
||||||
$auth->acl($user->data);
|
{
|
||||||
$user->setup();
|
$auth = $this->container_factory->get('auth');
|
||||||
|
|
||||||
|
$user->session_begin();
|
||||||
|
$auth->acl($user->data);
|
||||||
|
$user->setup();
|
||||||
|
}
|
||||||
|
|
||||||
$phpbb_root_path = $this->container_factory->get_parameter('core.root_path');
|
$phpbb_root_path = $this->container_factory->get_parameter('core.root_path');
|
||||||
|
|
||||||
$acp_url = append_sid($phpbb_root_path . 'adm/index.php', 'i=acp_help_phpbb&mode=help_phpbb', true, $user->session_id);
|
$acp_url = append_sid($phpbb_root_path . 'adm/index.php', 'i=acp_help_phpbb&mode=help_phpbb', true, $user->session_id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue