Skip to content

Commit

Permalink
Merge pull request #346 from kirov/master
Browse files Browse the repository at this point in the history
Allow __init__(cookies=None). Fixes #345
  • Loading branch information
oczkers authored Nov 29, 2017
2 parents 42a1ffc + dae7e8f commit 5c03e17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fut/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ def __launch__(self, email, passwd, secret_answer, platform='pc', code=None, tot
except IOError:
pass
# self.r.cookies.save(ignore_discard=True) # create empty file for cookies
else:
self.__login__(email=email, passwd=passwd, code=code, totp=totp, sms=sms)
if emulate == 'and':
raise FutError(reason='Emulate feature is currently disabled duo latest changes in login process, need more info')
self.r.headers = headers_and.copy() # i'm android now ;-)
Expand Down

0 comments on commit 5c03e17

Please sign in to comment.