]> git.mxchange.org Git - friendica.git/commitdiff
Fixed wrong email field
authornupplaPhil <admin+github@philipp.info>
Sat, 1 Feb 2020 21:11:36 +0000 (22:11 +0100)
committernupplaPhil <admin+github@philipp.info>
Sun, 2 Feb 2020 21:43:36 +0000 (22:43 +0100)
mod/lostpass.php

index d125cab5fbba33a3eb2071b88f06856fd8e2f92e..e412c495865dcb7f101025bd37437f22a6508dd6 100644 (file)
@@ -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);
        }