Merge pull request #317 from gave92/master

Fix 2FA for non-English users
This commit is contained in:
Mads Marquart
2018-07-28 19:34:39 +02:00
committed by GitHub

View File

@@ -265,8 +265,7 @@ class Client(object):
# Usually, 'Checkpoint' will refer to 2FA
if ('checkpoint' in r.url
and ('enter security code to continue' in r.text.lower()
or 'enter login code to continue' in r.text.lower())):
and ('id="approvals_code"' in r.text.lower())):
r = self._2FA(r)
# Sometimes Facebook tries to show the user a "Save Device" dialog