X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=2ce396e36606610e585c7bdd40bb103040d6a372;hb=4683cfee123904032cebc5b6d6719c8c712caa24;hp=34daeffd7d30809c15dd11d4b152e0df8de42255;hpb=262c94f12f4e28f3291716ffe8082e9b6b5cf7d7;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 34daeffd7d..2ce396e366 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -1,7 +1,22 @@ . + * */ use Friendica\App; @@ -65,9 +80,9 @@ function lostpass_post(App $a) Login Name: %3$s', $resetlink, DI::baseUrl(), $user['nickname'])); $email = DI::emailer() - ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n()) + ->newSystemMail() ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body) - ->forUser($user['uid'] ?? 0) + ->forUser($user) ->withRecipient($user['email']) ->build(); @@ -157,9 +172,9 @@ function lostpass_generate_password($user) ', DI::baseUrl(), $user['nickname'], $new_password)); $email = DI::emailer() - ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n()) + ->newSystemMail() ->withMessage(DI::l10n()->t('Your password has been changed at %s', $sitename), $preamble, $body) - ->forUser($user['uid'] ?? 0) + ->forUser($user) ->withRecipient($user['email']) ->build(); DI::emailer()->send($email);