Check for alternate 2Factor page text

This commit is contained in:
Aaron Lewis
2017-06-29 13:21:25 -07:00
parent d7139701f7
commit 961777e0c1

View File

@@ -204,7 +204,8 @@ class Client(object):
r = self._cleanPost(ReqUrl.LOGIN, data) r = self._cleanPost(ReqUrl.LOGIN, data)
# Usually, 'Checkpoint' will refer to 2FA # Usually, 'Checkpoint' will refer to 2FA
if 'checkpoint' in r.url and 'Enter Security Code to Continue' in r.text: if ('checkpoint' in r.url and
('Enter Security Code to Continue' in r.text or 'Enter Login Code to Continue' in r.text)):
r = self._2FA(r) r = self._2FA(r)
# Sometimes Facebook tries to show the user a "Save Device" dialog # Sometimes Facebook tries to show the user a "Save Device" dialog