Created
October 21, 2026 21:02
-
-
Save Marko-M/1676f8383fa00a2c720ae2fb2ceeb32f to your computer and use it in GitHub Desktop.
246p15-2026-10-001-CE-bugfix.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php b/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php | |
| index e91bab987e906787095eca90c073d749974b2fb9..6b2cb8d56812adc0fdd5df43220bc1292192357d 100644 | |
| --- a/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php | |
| +++ b/vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php | |
| @@ -85,6 +85,7 @@ | |
| ); | |
| } | |
| - return $collection->getFirstItem(); | |
| + // Resource collections return models; the service contract requires customer data. | |
| + return $this->customerRepository->getById((int)$collection->getFirstItem()->getId()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment