This repository was archived by the owner on Aug 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,18 +119,10 @@ def login(self, force=False):
119119
120120 def two_factor (self ):
121121 print ("Two factor required" )
122- # 1 - SMS, 2 - Backup codes, 3 - TOTP, 0 - ??
123- if self .LastJson ['two_factor_info' ]['sms_two_factor_on' ]:
124- verification_method = 1
125- elif self .LastJson ['two_factor_info' ]['totp_two_factor_on' ]:
126- verification_method = 0
127- else :
128- print ("Verification method not supported. Try SMS two-factor authentication." )
129- return False
130-
122+ # verification_method': 0 works for sms and TOTP. why? ¯\_ಠ_ಠ_/¯
131123 verification_code = input ('Enter verification code: ' )
132124 data = {
133- 'verification_method' : verification_method ,
125+ 'verification_method' : 0 ,
134126 'verification_code' : verification_code ,
135127 'trust_this_device' : 1 ,
136128 'two_factor_identifier' : self .LastJson ['two_factor_info' ]['two_factor_identifier' ],
Original file line number Diff line number Diff line change 1010
1111setuptools .setup (
1212 name = 'ItsAGramLive' ,
13- version = '1.2.1 ' ,
13+ version = '1.2.2 ' ,
1414 packages = setuptools .find_packages (),
1515 url = 'https://github.com/harrypython/itsagramlive' ,
1616 license = 'GPL-3.0' ,
You can’t perform that action at this time.
0 commit comments