{"action":"created","issue":{"url":"https://api.github.com/repos/trydis/FIFA-Ultimate-Team-Toolkit/issues/137","labels_url":"https://api.github.com/repos/trydis/FIFA-Ultimate-Team-Toolkit/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/trydis/FIFA-Ultimate-Team-Toolkit/issues/137/comments","events_url":"https://api.github.com/repos/trydis/FIFA-Ultimate-Team-Toolkit/issues/137/events","html_url":"https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/issues/137","id":108375894,"number":137,"title":"Login verification","user":{"login":"eupantof","id":14335663,"avatar_url":"https://avatars.githubusercontent.com/u/14335663?v=3","gravatar_id":"","url":"https://api.github.com/users/eupantof","html_url":"https://github.com/eupantof","followers_url":"https://api.github.com/users/eupantof/followers","following_url":"https://api.github.com/users/eupantof/following{/other_user}","gists_url":"https://api.github.com/users/eupantof/gists{/gist_id}","starred_url":"https://api.github.com/users/eupantof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eupantof/subscriptions","organizations_url":"https://api.github.com/users/eupantof/orgs","repos_url":"https://api.github.com/users/eupantof/repos","events_url":"https://api.github.com/users/eupantof/events{/privacy}","received_events_url":"https://api.github.com/users/eupantof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-25T17:48:02Z","updated_at":"2015-10-14T14:41:05Z","closed_at":null,"body":"Just wanted to let you guys know that Login verification is back. But now the email that we receive changed the format a bit:\r\n- sender is \"EA\" now, before it was \"Origin\"\r\n- the code is between \\<h1\\> tags now, before it was between \\<strong\\> tags (e.g.    20px;margin-left: 0;text-align: left\" class=\"h1\">XXXXXX\\</h1\\>)\r\n\r\nEDIT:\r\nI see that for me, at least, there is a new page loaded after code verification is sent. It's an advertise to use the App Authenticator. So I had to change LoginRequest.cs like this:\r\n\r\n        private async Task SetTwoFactorCodeAsync(HttpResponseMessage loginResponse)\r\n        {\r\n            var tfCode = await _twoFactorCodeProvider.GetTwoFactorCodeAsync();\r\n\r\n            var responseContent = await loginResponse.Content.ReadAsStringAsync();\r\n\r\n            AddReferrerHeader(loginResponse.RequestMessage.RequestUri.ToString());\r\n\r\n            var codeResponseMessage = await HttpClient.PostAsync(loginResponse.RequestMessage.RequestUri, new FormUrlEncodedContent(\r\n                        new[]\r\n                            {\r\n                                new KeyValuePair<string, string>(responseContent.Contains(\"twofactorCode\") ? \"twofactorCode\" : \"twoFactorCode\", tfCode),\r\n                                new KeyValuePair<string, string>(\"_eventId\", \"submit\"),\r\n                                new KeyValuePair<string, string>(\"_trustThisDevice\", \"on\"),\r\n                                new KeyValuePair<string, string>(\"trustThisDevice\", \"on\")\r\n                            }));\r\n\r\n            codeResponseMessage.EnsureSuccessStatusCode();\r\n\r\n            var contentData = await codeResponseMessage.Content.ReadAsStringAsync();\r\n\r\n            if (contentData.Contains(\"Incorrect code entered\"))\r\n                throw new FutException(\"Incorrect TwoFactorCode entered.\");\r\n\r\n            if (contentData.Contains(\"Tired of waiting for your code?\"))\r\n                await SkipAuthenticatorAdvertise(codeResponseMessage);\r\n        }\r\n\r\n        private async Task SkipAuthenticatorAdvertise(HttpResponseMessage codeResponse)\r\n        {\r\n            var responseContent = await codeResponse.Content.ReadAsStringAsync();\r\n\r\n            AddReferrerHeader(codeResponse.RequestMessage.RequestUri.ToString());\r\n\r\n            var authenticatorResponseMessage = await HttpClient.PostAsync(codeResponse.RequestMessage.RequestUri, new FormUrlEncodedContent(\r\n                        new[]\r\n                            {\r\n                                new KeyValuePair<string, string>(\"_eventId\", \"cancel\"),\r\n                                new KeyValuePair<string, string>(\"appDevice\", \"ANDROID\"),\r\n                            }));\r\n\r\n            authenticatorResponseMessage.EnsureSuccessStatusCode();\r\n\r\n            var contentData = await authenticatorResponseMessage.Content.ReadAsStringAsync();\r\n        }\r\n\r\nWorks for me.\r\n\r\nHappy farming!"},"comment":{"url":"https://api.github.com/repos/trydis/FIFA-Ultimate-Team-Toolkit/issues/comments/148071366","html_url":"https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/issues/137#issuecomment-148071366","issue_url":"https://api.github.com/repos/trydis/FIFA-Ultimate-Team-Toolkit/issues/137","id":148071366,"user":{"login":"bradders591","id":10334412,"avatar_url":"https://avatars.githubusercontent.com/u/10334412?v=3","gravatar_id":"","url":"https://api.github.com/users/bradders591","html_url":"https://github.com/bradders591","followers_url":"https://api.github.com/users/bradders591/followers","following_url":"https://api.github.com/users/bradders591/following{/other_user}","gists_url":"https://api.github.com/users/bradders591/gists{/gist_id}","starred_url":"https://api.github.com/users/bradders591/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradders591/subscriptions","organizations_url":"https://api.github.com/users/bradders591/orgs","repos_url":"https://api.github.com/users/bradders591/repos","events_url":"https://api.github.com/users/bradders591/events{/privacy}","received_events_url":"https://api.github.com/users/bradders591/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T14:41:05Z","updated_at":"2015-10-14T14:41:05Z","body":"Did anyone have to add anything special to their gmail account to allow for IMAP connections? I've enabled imap in the settings but still not having any luck logging into gmail from my app."}}