From 36e483465d94da7b0cfdbd48e259abbfd7873093 Mon Sep 17 00:00:00 2001 From: x1a0 Date: Mon, 28 Sep 2015 16:13:10 +0200 Subject: [PATCH] Support App Authentication --- fut/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fut/core.py b/fut/core.py index 10dec62..9ace2e7 100644 --- a/fut/core.py +++ b/fut/core.py @@ -210,7 +210,7 @@ def __login__(self, email, passwd, secret_answer, platform='pc', code=None, emul self.r.headers['Referer'] = rc.url # s3 rc = self.r.post(rc.url, {'twofactorType': 'EMAIL', 'country': 0, 'phoneNumber': '', '_eventId': 'submit'} ''' - if 'We sent a security code to your' in rc.text or 'Your security code was sent to' in rc.text: # post code + if 'We sent a security code to your' in rc.text or 'Your security code was sent to' in rc.text or 'Enter the 6-digit verification code' in rc.text: # post code # TODO: 'We sent a security code to your email' / 'We sent a security code to your ?' # TODO: pick code from codes.txt? if not code: