Skip to content

Commit de530f7

Browse files
committed
#26288 Will now throw an exception when a customer does not exist who wants to reset password
1 parent 78bb169 commit de530f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/ForgotPasswordToken/GetCustomerByToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function execute(string $resetPasswordToken):CustomerInterface
7373
}
7474
if ($found->getTotalCount() === 0) {
7575
//Customer with such token not found.
76-
new NoSuchEntityException(
76+
throw new NoSuchEntityException(
7777
new Phrase(
7878
'No such entity with rp_token = %value',
7979
[

0 commit comments

Comments
 (0)