public override void HandleAuthResponse(RewrittenAccount account) { var result = account.LoginResult; var status = result.Success; if (status == "true") { account.LoggedIn = true; return; } if (status == "false") { return; } if (status == "partial") { result.AuthToken = result.Banner.Contains("ToonGuard") ? "ToonGuard" : "Two-Step Token"; AccountsToTwoStepAuth.Add(account); return; } GetAuthResponseAfterPartial(account); }
public override void HandleAuthResponse(ClashAccount account) { if (account.LoginResult.Status) { account.LoggedIn = true; } else if (account.LoginResult.Toonstep) { AccountsToTwoStepAuth.Add(account); } else if (account.LoginResult.BadToken) { account.Authorized = false; account.LoginToken = null; } }