Fixed wrong email field

This commit is contained in:
nupplaPhil 2020-02-01 22:11:36 +01:00
parent 05dfff4bb4
commit 16d9b9ff7d
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90

View File

@ -68,7 +68,7 @@ function lostpass_post(App $a)
->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n()) ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body) ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body)
->forUser($user['uid'] ?? 0) ->forUser($user['uid'] ?? 0)
->withRecipient($user['to_email']) ->withRecipient($user['email'])
->build(); ->build();
DI::emailer()->send($email); DI::emailer()->send($email);
@ -160,7 +160,7 @@ function lostpass_generate_password($user)
->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n()) ->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) ->withMessage(DI::l10n()->t('Your password has been changed at %s', $sitename), $preamble, $body)
->forUser($user['uid'] ?? 0) ->forUser($user['uid'] ?? 0)
->withRecipient($user['to_email']) ->withRecipient($user['email'])
->build(); ->build();
DI::emailer()->send($email); DI::emailer()->send($email);
} }