Skip to content

Commit

Permalink
Added auto login after user registration
Browse files Browse the repository at this point in the history
in `CheckoutFormFactory`

remp/helpdesk#2995
  • Loading branch information
zoldia committed Sep 17, 2024
1 parent fa3255d commit 08cbfd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Forms/CheckoutFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ public function formSucceeded($form, $values)
return;
}

$this->user->login(['user' => $user, 'autoLogin' => true]);

if (!$user) {
$form['user']['email']->addError('products.frontend.shop.checkout.warnings.unable_to_create_user');
return;
Expand Down

0 comments on commit 08cbfd6

Please sign in to comment.