add password checking before changing

This commit is contained in:
CWX
2025-02-14 17:26:03 +00:00
parent 2a172a6861
commit 2345015bdb
@@ -108,7 +108,13 @@ public class LauncherV2Controller(
return false;
}
_saveServer.GetProfile(sessionId).ProfileInfo!.Password = info.Password;
if (!Login(info))
{
return false;
}
_saveServer.GetProfile(sessionId).ProfileInfo!.Password = info.Change;
_saveServer.SaveProfile(sessionId);
return true;
}