FIFA-Ultimate-Team-Toolkit
FIFA-Ultimate-Team-Toolkit copied to clipboard
chooses wrong authtype
it chooses always authtype = APP if you've setup both
Can you please share the code how you setup both auth types?
` protected async Task<HttpResponseMessage> SetTwoFactorTypeAsync(HttpResponseMessage mainPageResponseMessage) { var loginResponseMessage = new HttpResponseMessage(); var contentData = string.Empty;
if (_authType == AuthenticationType.Email)
{
loginResponseMessage = await HttpClient.PostAsync(mainPageResponseMessage.RequestMessage.RequestUri, new FormUrlEncodedContent(
new[]
{
new KeyValuePair<string, string>("_eventId", "submit"),
}));
}
else
{
loginResponseMessage = await HttpClient.PostAsync(mainPageResponseMessage.RequestMessage.RequestUri, new FormUrlEncodedContent(
new[]
{
new KeyValuePair<string, string>("_eventId", "submit"),
new KeyValuePair<string, string>("codeType", "APP"),
}));
}
return loginResponseMessage;
}`
it'd need an addition of "codeType=EMAIL&_eventId=submit" cause at current state it wont work when you've setup both auth types