Fix account change username / password

This commit is contained in:
Lncvrt committed 2026-02-10 20:19:41 -07:00
1 parent 6020d0b08c
commit c9bc65ea9c
2 files changed
+2 -1

No files matched your search

@@ -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);
}
@@ -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);
}