switched intend

This commit is contained in:
nupplaPhil 2020-02-02 09:15:05 +01:00
parent ed9756225d
commit 6700467ed4
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90

View File

@ -157,11 +157,11 @@ function lostpass_generate_password($user)
', DI::baseUrl(), $user['nickname'], $new_password)); ', DI::baseUrl(), $user['nickname'], $new_password));
$email = DI::emailer() $email = DI::emailer()
->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['email']) ->withRecipient($user['email'])
->build(); ->build();
DI::emailer()->send($email); DI::emailer()->send($email);
} }