From c9bc65ea9c771f947e313ef07091bdd613703b1b Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 10 Feb 2026 20:19:41 -0700 Subject: [PATCH] Fix account change username / password --- Assets/Scripts/AccountMenu/AccountChangePassword.cs | 2 +- Assets/Scripts/AccountMenu/AccountChangeUsername.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/AccountMenu/AccountChangePassword.cs b/Assets/Scripts/AccountMenu/AccountChangePassword.cs index 76d5546..8012f3b 100644 --- a/Assets/Scripts/AccountMenu/AccountChangePassword.cs +++ b/Assets/Scripts/AccountMenu/AccountChangePassword.cs @@ -55,7 +55,7 @@ public class AccountChangePassword : MonoBehaviour var jsonResponse = JObject.Parse(request.downloadHandler.text); if ((bool)jsonResponse["success"]) { - BazookaManager.Instance.SetAccountSession((string)jsonResponse["token"]); + BazookaManager.Instance.SetAccountSession((string)jsonResponse["data"]); AccountHandler.instance.SwitchPanel(0); Tools.UpdateStatusText(AccountHandler.instance.accountLoggedIn.loggedInText, "Password changed successfully", Color.green); } diff --git a/Assets/Scripts/AccountMenu/AccountChangeUsername.cs b/Assets/Scripts/AccountMenu/AccountChangeUsername.cs index a9f652d..bbf47ce 100644 --- a/Assets/Scripts/AccountMenu/AccountChangeUsername.cs +++ b/Assets/Scripts/AccountMenu/AccountChangeUsername.cs @@ -48,6 +48,7 @@ public class AccountChangeUsername : MonoBehaviour if ((bool)jsonResponse["success"]) { BazookaManager.Instance.SetAccountName(changeUsernameNewUsernameInput.text); + BazookaManager.Instance.SetAccountSession((string)jsonResponse["data"]); AccountHandler.instance.SwitchPanel(0); Tools.UpdateStatusText(AccountHandler.instance.accountLoggedIn.loggedInText, "Username changed successfully", Color.green); }