Skip to content

Commit

Permalink
Fixed customer can't login after registering through PayPal Express C…
Browse files Browse the repository at this point in the history
…heckout (#3979)
  • Loading branch information
fballiano authored May 28, 2024
1 parent e3f2574 commit 1b86733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Paypal/Model/Express/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ protected function _prepareNewCustomerQuote()
$customer->setSuffix($quote->getCustomerSuffix());
$customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));
$customer->setPasswordHash($customer->hashPassword($customer->getPassword()));
$customer->setPasswordCreatedAt(time());
$customer->save();
$quote->setCustomer($customer);
$quote->setPasswordHash('');
Expand Down

0 comments on commit 1b86733

Please sign in to comment.