Skip to content

Commit

Permalink
Merge pull request #57 from entasadar/fix_email_login
Browse files Browse the repository at this point in the history
Fix email login
  • Loading branch information
vladkens authored Aug 27, 2023
2 parents 86fcafc + 9643fdb commit f88692e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twscrape/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def login_confirm_email(client: AsyncClient, acc: Account, prev: dict, ima

async def login_confirm_email_code(client: AsyncClient, acc: Account, prev: dict, imap):
if not imap:
imap = await imap_login(acc.email, acc.password)
imap = await imap_login(acc.email, acc.email_password)

now_time = datetime.now(timezone.utc) - timedelta(seconds=30)
value = await imap_get_email_code(imap, acc.email, now_time)
Expand Down

0 comments on commit f88692e

Please sign in to comment.