Skip to content

Commit c4c8af6

Browse files
author
roman
committed
MAGETWO-70943: Incorrect reset password flow
1 parent e41cd3a commit c4c8af6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ private function handleUnknownTemplate($template)
661661
/**
662662
* @inheritdoc
663663
*/
664-
public function resetPassword($email, $resetToken, $newPassword): bool
664+
public function resetPassword($email, $resetToken, $newPassword)
665665
{
666666
if (!$email) {
667667
$customer = $this->matchCustomerByRpToken($resetToken);
@@ -1093,7 +1093,7 @@ public function isCustomerInStore($customerWebsiteId, $storeId)
10931093
* @throws \Magento\Framework\Exception\NoSuchEntityException If customer doesn't exist
10941094
* @throws LocalizedException
10951095
*/
1096-
private function validateResetPasswordToken(?int $customerId, ?string $resetPasswordLinkToken) : bool
1096+
private function validateResetPasswordToken($customerId, $resetPasswordLinkToken)
10971097
{
10981098
if ($customerId !== null && $customerId <= 0) {
10991099
throw new InputException(

app/code/Magento/Customer/view/frontend/email/password_reset_confirmation.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<tr>
2323
<td align="center">
2424
<a href="{{var this.getUrl($store,'customer/account/createPassword/',[_query:[token:$customer.rp_token],_nosid:1])}}" target="_blank">{{trans "Set a New Password"}}</a>
25-
2625
</td>
2726
</tr>
2827
</table>

0 commit comments

Comments
 (0)