Skip to content

Commit 5aa5229

Browse files
ravage84ajibarra
authored andcommitted
Set type of email notification
Without this no email is sent. This has become necessary after the following change from #685 https://github.com/CakeDC/users/pull/685/files#diff-087e5d4ddeb9b25aa37f089c2ce923ee418537310623b29d393404528f1797a3R73-R80
1 parent 127bb70 commit 5aa5229

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Shell/UsersShell.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ public function passwordEmail()
239239
'expiration' => Configure::read('Users.Token.expiration'),
240240
'checkActive' => false,
241241
'sendEmail' => true,
242+
'type' => 'passord',
242243
]);
243244
if ($resetUser) {
244245
$msg = __d('CakeDC/Users', 'Please ask the user to check the email to continue with password reset process');

0 commit comments

Comments
 (0)