From 16d9b9ff7d706b1afc3ca37ddfe4f5dd89e28976 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 1 Feb 2020 22:11:36 +0100 Subject: [PATCH] Fixed wrong email field --- mod/lostpass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/lostpass.php b/mod/lostpass.php index d125cab5f..e412c4958 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -68,7 +68,7 @@ function lostpass_post(App $a) ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n()) ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body) ->forUser($user['uid'] ?? 0) - ->withRecipient($user['to_email']) + ->withRecipient($user['email']) ->build(); DI::emailer()->send($email); @@ -160,7 +160,7 @@ function lostpass_generate_password($user) ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n()) ->withMessage(DI::l10n()->t('Your password has been changed at %s', $sitename), $preamble, $body) ->forUser($user['uid'] ?? 0) - ->withRecipient($user['to_email']) + ->withRecipient($user['email']) ->build(); DI::emailer()->send($email); }