From c3594a6e7c6f6f6a5bff0039362cd0e87f341a7d Mon Sep 17 00:00:00 2001 From: Elson Costa Date: Mon, 20 Nov 2023 16:54:05 -0300 Subject: [PATCH] added email. --- system/pages/createaccount.php | 1 + system/templates/account.welcome_mail.html.twig | 1 + 2 files changed, 2 insertions(+) diff --git a/system/pages/createaccount.php b/system/pages/createaccount.php index cb59ba5b2a..3038448982 100644 --- a/system/pages/createaccount.php +++ b/system/pages/createaccount.php @@ -300,6 +300,7 @@ if ($config['mail_enabled'] && $config['account_welcome_mail']) { $mailBody = $twig->render('account.welcome_mail.html.twig', array( 'account' => $tmp_account, + 'email' => $email, 'password' => $password ?? null )); diff --git a/system/templates/account.welcome_mail.html.twig b/system/templates/account.welcome_mail.html.twig index d0daaf24a5..440cfc2a19 100644 --- a/system/templates/account.welcome_mail.html.twig +++ b/system/templates/account.welcome_mail.html.twig @@ -2,6 +2,7 @@

Thanks for your registration at {{ config.lua.serverName }}



Your login details: +

E-mail: {{ email }}

Account {% if constant('USE_ACCOUNT_NAME') %}name{% else %}number{% endif %}: {{ account }}

Password: {% if config.account_welcome_mail_show_pass %}{{ password }} {% else %}************ (hidden for security reasons){% endif %}