Skip to content

HG-Login Developer Guide

Testing / Debugging

You can use the following configuration options during development to aid debugging and testing

-- For Dev
Config.EmailDebug = false --(1)!
Config.EnableTestingCommands = false --(2)!
  1. Enable email service API debug mode (Server Console). This helps troubleshoot email-related functionalities during development (true or false)

  2. Enable testing commands, allowing simulation of various scenarios in the server console. Usage: (server console)

    • testemail register email@email.com
    • testemail passreset email@email.com
    • testemail passchanged email@email.com
    • testemail whitelist email@email.com

Email Customization

You can customize the existing letters for each email by changing Whitelist.html, Register.html, PasswordReset.html, PasswordChanged.html files, found under letters/.

.
└── hg-login/
    └── letters/
        └── Whitelist.html
        └── Register.html
        └── PasswordReset.html
        └── PasswordChanged.html

You can download the html letters below

Warning

We only allow imgur and discord links in email html letters, if you use different links, the emails will not be delivered.

Info

Look for server side print on resource start to know if the letters got imported successfully or no.