Skip to content

Commit d0e0628

Browse files
author
Volodymyr Kublytskyi
committed
Merge magento-partners/magento2ce#57.
2 parents 4d5f1d9 + e000d60 commit d0e0628

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,13 @@ public function initiatePasswordReset($email, $template, $websiteId = null)
533533
default:
534534
throw new InputException(
535535
__(
536-
'Invalid value of "%value" provided for the %fieldName field.',
537-
['value' => $template, 'fieldName' => 'email type']
536+
'Invalid value of "%value" provided for the %fieldName field. Possible values are %template1 or %template2.',
537+
[
538+
'value' => $template,
539+
'fieldName' => 'template',
540+
'template1' => AccountManagement::EMAIL_REMINDER,
541+
'template2' => AccountManagement::EMAIL_RESET
542+
]
538543
)
539544
);
540545
}

app/code/Magento/Customer/Test/Unit/Model/AccountManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ public function testInitiatePasswordResetEmailReset()
11751175

11761176
/**
11771177
* @expectedException \Magento\Framework\Exception\InputException
1178-
* @expectedExceptionMessage Invalid value of "" provided for the email type field
1178+
* @expectedExceptionMessage Invalid value of "" provided for the template field. Possible values are email_reminder or email_reset.
11791179
*/
11801180
public function testInitiatePasswordResetNoTemplate()
11811181
{

0 commit comments

Comments
 (0)