trydis / FIFA-Ultimate-Team-Toolkit

FIFA Ultimate Team Toolkit
MIT License
233 stars 110 forks source link

Is this still working? #405

Closed caiorodrig0 closed 4 months ago

caiorodrig0 commented 5 years ago

I am having problems with login.

Everytime i try, i get this exception: "Two Factor Code MUST be 6 digits long WebApp."

Can someone help?

marlonespindola commented 5 years ago

Did you received the EA code and typed in?

caiorodrig0 commented 5 years ago

No, can you help me?

marlonespindola commented 5 years ago

did you try the solution from #401 for me it worked.

caiorodrig0 commented 5 years ago

Yeah, my method is like this:

protected async Task 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>("codeType", "EMAIL"),
                                                                                                                        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", "EMAIL"),
                                                                                                                       // new KeyValuePair<string, string>("codeType", "APP"),
                                                                                                                        }));
        }

        return loginResponseMessage;
    }

but still didnt work properly =/

caiorodrig0 commented 5 years ago

Ok, its working now.. but i get this error atm

Could not find member 'onlineAccess' on object of type 'Persona'. Path 'userAccountInfo.personas[0].onlineAccess', line 1, position 115

do you know how to fix it?

trydis commented 5 years ago

See https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/issues/394#issuecomment-415378139