Skip to content

Commit d74a153

Browse files
committed
MAGETWO-35386: Blank email is sent when trying to change password for a customer
- Bug fixes
1 parent b10a27b commit d74a153

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ protected function sendPasswordResetNotificationEmail($customer)
839839
$storeId = $this->getWebsiteStoreId($customer);
840840
}
841841

842+
$customerEmailData = $this->getFullCustomerObject($customer);
842843
/** @var \Magento\Framework\Mail\TransportInterface $transport */
843844
$transport = $this->transportBuilder->setTemplateIdentifier(
844845
$this->scopeConfig->getValue(
@@ -849,7 +850,7 @@ protected function sendPasswordResetNotificationEmail($customer)
849850
)->setTemplateOptions(
850851
['area' => \Magento\Framework\App\Area::AREA_FRONTEND, 'store' => $storeId]
851852
)->setTemplateVars(
852-
['customer' => $customer, 'store' => $this->storeManager->getStore($storeId)]
853+
['customer' => $customerEmailData, 'store' => $this->storeManager->getStore($storeId)]
853854
)->setFrom(
854855
$this->scopeConfig->getValue(
855856
self::XML_PATH_FORGOT_EMAIL_IDENTITY,

0 commit comments

Comments
 (0)