How to authorize a user on the forum phpBB3 link? The link should not contain a password, in order to completely simplify the task we will leave only the username in this link (users from the main site have already been added to the phpBB3 database). Interested in how to start a user session in phpBB3. Here, for example, we have the user id from phpBB3 or the entire set of fields from the users table. What you need to do to authorize it. As far as I understand, authorization occurs in this section of the code of the ucp.php file:
$user->session_begin(); $auth->acl($user->data); ... case 'login': if ($user->data['is_registered']) { redirect(append_sid("{$phpbb_root_path}index.$phpEx")); } login_box(request_var('redirect', "index.$phpEx")); break;
But I can't understand how to authorize a manually created user.
PS Understood it seems, after receiving session_id it is necessary to write down the session_user_id column of the sessions ID table of the required user.