mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix interactive login would prompt 2fa forever
This commit is contained in:
@@ -187,6 +187,7 @@ async def interactive_login(
|
||||
password = getpass.getpass(": ")
|
||||
try:
|
||||
user = await self.check_password(user_or_token, password)
|
||||
break
|
||||
except RpcError as e:
|
||||
if e.name.startswith("PASSWORD"):
|
||||
print("Invalid password:", e)
|
||||
|
Reference in New Issue
Block a user