Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Update 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ic3w0lf22 committed Jun 23, 2022
1 parent bb02b79 commit 9811ccd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RBX Alt Manager/AccountManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -685,18 +685,18 @@ private string SendResponse(HttpListenerContext Context)
if (Method == "ImportCookie")
{
Account New = AddAccount(request.QueryString["Cookie"]);

if (New != null)
Context.Response.StatusCode = 200;

return New != null ? "true" : "false";
}

if (string.IsNullOrEmpty(Account)) return "Empty Account";
if (string.IsNullOrEmpty(Account)) return "Empty Account";

Account account = AccountsList.FirstOrDefault(x => x.Username == Account || x.UserID.ToString() == Account);

if (account == null || string.IsNullOrEmpty(account.GetCSRFToken())) return "Invalid Account";
if (account == null || string.IsNullOrEmpty(account.GetCSRFToken())) return "Invalid Account";

Context.Response.StatusCode = 401;

Expand All @@ -711,7 +711,7 @@ private string SendResponse(HttpListenerContext Context)

if (Method == "LaunchAccount")
{
if (!WebServer.Get<bool>("AllowLaunchAccount")) return "Method not allowed";
if (!WebServer.Get<bool>("AllowLaunchAccount")) return "Method not allowed";

bool ValidPlaceId = long.TryParse(request.QueryString["PlaceId"], out long PlaceId); if (!ValidPlaceId) return "Invalid PlaceId";

Expand Down Expand Up @@ -797,7 +797,7 @@ private string SendResponse(HttpListenerContext Context)
}

if (Method == "GetField" && !string.IsNullOrEmpty(request.QueryString["Field"])) return account.GetField(request.QueryString["Field"]);

Context.Response.StatusCode = 401;

if (Method == "SetField" && !string.IsNullOrEmpty(request.QueryString["Field"]) && !string.IsNullOrEmpty(request.QueryString["Value"]))
Expand Down

0 comments on commit 9811ccd

Please sign in to comment.