Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 3e1755c

Browse files
committed
New version 1.2.2
Added the possibility to see the comments on a Live new two factor verification method (again)
1 parent 58993c4 commit 3e1755c

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

ItsAGramLive/ItsAGramLive.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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'],

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.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',

0 commit comments

Comments
 (0)