Browse Source

Merge pull request #25 from hvtuananh/2fa

Better support two-factor authentication.
pull/26/head
Wesley Kerfoot 5 years ago
committed by GitHub
parent
commit
304d5aa74c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      deletefb/deletefb.py

2
deletefb/deletefb.py

@ -99,7 +99,7 @@ def delete_posts(user_email_address,
loginelement = driver.find_element_by_id(login)
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
print("Pausing to enter 2FA code")
time.sleep(20)

Loading…
Cancel
Save