Skip to content

Commit

Permalink
added email.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Nov 20, 2023
1 parent 96facfd commit c3594a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/pages/createaccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
));

Expand Down
1 change: 1 addition & 0 deletions system/templates/account.welcome_mail.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<p>Thanks for your registration at <a href="{{ constant('BASE_URL') }}"><b>{{ config.lua.serverName }}</b></a></p>
<br/><br/>
Your login details:
<p>E-mail: <b>{{ email }}</b></p>
<p>Account {% if constant('USE_ACCOUNT_NAME') %}name{% else %}number{% endif %}: <b>{{ account }}</b></p>
<p>Password: {% if config.account_welcome_mail_show_pass %}<b>{{ password }}</b>
{% else %}<b>************</b> (hidden for security reasons){% endif %}
Expand Down

0 comments on commit c3594a6

Please sign in to comment.