1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

Merge pull request #5272 from rubencm/ticket/15714

[ticket/15714] Auto login after registration

* github.com:/phpbb/phpbb:
  [ticket/15714] Edit language string
  [ticket/15714] Auto login after registration
This commit is contained in:
Tristan Darricau
2018-07-08 18:23:33 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -451,6 +451,9 @@ class ucp_register
{
$message = $user->lang['ACCOUNT_ADDED'];
$email_template = 'user_welcome';
// Autologin after registration
$user->session_create($user_id, 0, false, 1);
}
if ($config['email_enable'])