Fix 2FA for non english FB

This commit is contained in:
Marco Gavelli
2018-07-15 12:37:20 +02:00
parent c2fb602bee
commit 4419c816f5

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