From 8db2f5a2ef9937a9488075af3ae36900793e32f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Tue, 13 Apr 2021 15:08:26 +0200 Subject: [PATCH 1/2] 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 --- src/Shell/UsersShell.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Shell/UsersShell.php b/src/Shell/UsersShell.php index bd38e2e44..138cce415 100644 --- a/src/Shell/UsersShell.php +++ b/src/Shell/UsersShell.php @@ -275,6 +275,7 @@ public function passwordEmail() 'expiration' => Configure::read('Users.Token.expiration'), 'checkActive' => false, 'sendEmail' => true, + 'type' => 'passord', ]); if ($resetUser) { $msg = __d( From 80bc1bc191f3540b526385fa2dcb5f69da6e6faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Mon, 26 Apr 2021 12:00:54 +0200 Subject: [PATCH 2/2] Typo --- src/Shell/UsersShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shell/UsersShell.php b/src/Shell/UsersShell.php index 138cce415..d98b5dd8b 100644 --- a/src/Shell/UsersShell.php +++ b/src/Shell/UsersShell.php @@ -275,7 +275,7 @@ public function passwordEmail() 'expiration' => Configure::read('Users.Token.expiration'), 'checkActive' => false, 'sendEmail' => true, - 'type' => 'passord', + 'type' => 'password', ]); if ($resetUser) { $msg = __d(