From cf77132e2b3e9764dfc545593c12b433f13d9434 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 19 Apr 2021 18:52:29 -0500 Subject: [PATCH] Woops settings is in flags --- scripts/server/account.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/server/account.js b/scripts/server/account.js index cb0eeaf0..08aef2ec 100644 --- a/scripts/server/account.js +++ b/scripts/server/account.js @@ -553,7 +553,7 @@ function saveAccountToDatabase(accountData) { dbQueryString = `UPDATE acct_svr SET acct_svr_acct='${accountData.databaseId}', - acct_svr_settings=${accountData.settings}, + acct_svr_settings=${accountData.flags.settings}, acct_svr_staff_title='${safeStaffTitle}', acct_svr_staff_flags=${accountData.flags.admin}, acct_svr_mod_flags=${accountData.flags.moderation}, @@ -807,10 +807,13 @@ function checkRegistration(client, password, confirmPassword = "", emailAddress messagePlayerAlert(client, "To play on the server, you will need to make a character."); if(getServerConfig().useGUI && doesPlayerHaveGUIEnabled(client)) { - sendEmailVerificationEmail(client, emailVerificationCode); showPlayerRegistrationSuccessGUI(client); showPlayerPromptGUI(client, "You have no characters. Would you like to make one?", "No Characters"); getPlayerData(client).promptType = AG_PROMPT_CREATEFIRSTCHAR; + + let emailVerificationCode = generateEmailVerificationCode(); + setAccountEmailVerificationCode(getPlayerData(client).accountData, emailVerificationCode); + sendEmailVerificationEmail(client, emailVerificationCode); } else { messagePlayerAlert(client, `You have no characters. Use /newchar to make one.`); } @@ -869,7 +872,6 @@ function initClient(client) { return false; } - sendPlayerAllowedSkins(client); sendPlayerGUIColours(client); sendPlayerGUIInit(client);