Browse Source
Merge pull request #25 from hvtuananh/2fa
Better support two-factor authentication.
pull/26/head
Wesley Kerfoot
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
deletefb/deletefb.py
|
@ -99,7 +99,7 @@ def delete_posts(user_email_address, |
|
|
loginelement = driver.find_element_by_id(login) |
|
|
loginelement = driver.find_element_by_id(login) |
|
|
loginelement.click() |
|
|
loginelement.click() |
|
|
|
|
|
|
|
|
if "Two-factor authentication" in driver.page_source: |
|
|
if "two-factor authentication" in driver.page_source.lower(): |
|
|
# Allow time to enter 2FA code |
|
|
# Allow time to enter 2FA code |
|
|
print("Pausing to enter 2FA code") |
|
|
print("Pausing to enter 2FA code") |
|
|
time.sleep(20) |
|
|
time.sleep(20) |
|
|