Fix interactive login would prompt 2fa forever

This commit is contained in:
Lonami Exo 2024-03-01 21:15:55 +01:00
parent fa693d068a
commit 72e6229cc7

View File

@ -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)