HG-Login Configuration Documentation
Interface Settings
We offer two different interfaces which you can switch between from fxmanifest.lua:1
- Available options:
- "new" for new interface (2024 Update)
- "legacy" for legacy interface (V3)
Note
Changing interface requires Server Restart.
Tip
Both interfaces are unlocked and can be edited.
Config.lua
General Settings
Config.ServerName = "servername" --(1)!
Config.IsWhitelistEnabled = true --(2)!
config.Mysql = "oxmysql" --(3)!
- Your server name (required for emails)
- Is Whitelist system enabled? (
true
orfalse
) - Available options:
- mysql-async
- ghattimysql
- oxmysql
Discord Webhook Settings
Config.register = '' --(1)!
Config.login = '' --(2)!
Config.verfy = '' --(3)!
Config.PasswordReset = '' --(4)!
Config.registertitle = 'User registered a new account' --(5)!
Config.logintitle = 'User logged in' --(6)!
Config.verifytitle = 'User verified email' --(7)!
Config.passwordrestitle = 'User requested Password Reset' --(8)!
- Webhook URL for user registration notifications.
- Webhook URL for user login notifications.
- Webhook URL for user email verification notifications.
- Webhook URL for user password reset notifications.
- Title for the webhook notification when a user registers a new account.
- Title for the webhook notification when a user logs in.
- Title for the webhook notification when a user verifies their email.
- Title for the webhook notification when a user requests a password reset.
Note
Make sure to replace the empty strings ('') with the actual webhook URLs you want to use for each notification type. Additionally, customize the titles to suit your preference for the webhook notifications.
Whitelist Settings
Config.BotToken = "YOUR_BOT_TOKEN_HERE" --(1)!
Config.WebHook = "YOUR_DISCORD_WEBHOOK_HERE" --(2)!
Config.ChannelID = "YOUR_TEXT_CHANNEL_ID_HERE" --(3)!
Config.WaitEveryTick = 2000 --(4)!
- Your Discord Bot Token, required for the whitelist system to function. Replace the placeholder with your actual Discord Bot Token.
- Discord Webhook URL used for communication related to the whitelist system. Replace the placeholder with your actual Discord Webhook URL.
- Discord Channel ID where the whitelist bot will operate. Replace the placeholder with your actual Discord Channel ID.
- Time in milliseconds needed for the bot to read commands. Adjust this value based on your server's requirements.
Note
To properly configure the Whitelist System and Discord Bot section, please follow the installation guide in the installation section. The guide provides step-by-step instructions to ensure accurate setup.
Translation
You can easily translate/change the notifications & email subjects
Config.ResetEmailSubject = "Account Verification - " .. Config.ServerName --(1)!
Config.PassResetEmailSubject = "Password Reset - " .. Config.ServerName --(2)!
Config.PassUpdatedEmailSubject = "Password Updated - " .. Config.ServerName --(3)!
Config.WhitelistEmailSubject = "Account whitelisted! - " .. Config.ServerName --(4)!
Config.EmailCoolDown = "Failed to Send Email, Cooldown in seconds: " --(5)!
Config.FillAllFields = "Please fill all the fields!" --(6)!
Config.Passworddontmatch = "New passwords don't match!" --(7)!
Config.FillUserOrEmail = "Please fill your username or email first!" --(8)!
Config.NoIdentifier = "No account associated with your identifier" --(9)!
Config.RegisterFirst = "Please register first" --(10)!
Config.SuccLogin = "You have logged in successfully" --(11)!
Config.VerifEmailFirst = "You need to verify your email first" --(12)!
Config.WrongLogin = "Wrong username or password" --(13)!
Config.SuccRegister = "You have registered successfully!" --(14)!
Config.EmailSent = "You should receive an email with your registration code shortly" --(15)!
Config.FailedToRegister = "Failed to register" --(16)!
Config.UserExists = "This username already exists!" --(17)!
Config.DiscordExists = "Discord account already exists!" --(18)!
Config.EmailExists = "This email address already exists!" --(19)!
Config.IdentifierExists = "There is already an account associated with your identifier!" --(20)!
Config.AlreadyVerified = "You are already verified" --(21)!
Config.SuccVerified = "You successfully verified your email" --(22)!
Config.IncorrectPIN = "Incorrect pin" --(23)!
Config.Emailresetsent = "You will shortly receive a password reset email to" --(24)!
Config.Emailusernotfound = "Email or username not found" --(25)!
Config.BadInfo = "Please check your info and try again!" --(26)!
Config.identifiermissmuch = "Identifier doesn't match!" --(27)!
Config.WrongTempPass = "Wrong temporary password" --(28)!
Config.SuccPassChange = "Password successfully changed" --(29)!
Config.pleaselogin = "Please Login" --(30)!
Config.ResentEmail = "You should receive an email to" --(31)!
Config.NotWhitelisted = "You are not whitelisted!" --(32)!
Config.LeaveMessage = "You successfully left the server" --(33)!
- Account Verification email subject.
- Password Reset email subject.
- Password Updated email subject.
- Whitelist Notification email subject.
- Notification for failed email sending cooldown.
- Notification for missing information in the registration form.
- Notification when new passwords don't match during registration.
- Notification to fill either username or email during login.
- Notification when no account is associated with the provided identifier.
- Notification prompting to register first.
- Notification for successful login.
- Notification to verify email first before logging in.
- Notification for wrong username or password during login.
- Notification for successful registration.
- Notification about the upcoming email with registration code.
- Notification for failed registration.
- Notification for an existing username during registration.
- Notification for an existing Discord account during registration.
- Notification for an existing email address during registration.
- Notification when there is already an account associated with the identifier.
- Notification when the user is already verified.
- Notification for successful email verification.
- Notification for incorrect PIN during the whitelisting process.
- Notification about the upcoming password reset email.
- Notification for email or username not found during password reset.
- Notification for incorrect information during password reset.
- Notification when the provided identifier doesn't match.
- Notification for a wrong temporary password during the whitelisting process.
- Notification for successful password change.
- Notification prompting to log in.
- Notification about the upcoming email for various purposes.
- Notification when the user is not whitelisted.
- Notification for successfully leaving the server.