Don't use getpass anymore (for now)
The reason is that getpass is blocking. Let's use ainput() until a proper way of reading from stdin without echoing is found.
This commit is contained in:
parent
ed562edb9f
commit
ec82b4f994
@ -19,7 +19,6 @@
|
||||
import asyncio
|
||||
import base64
|
||||
import binascii
|
||||
import getpass
|
||||
import inspect
|
||||
import json
|
||||
import logging
|
||||
@ -548,7 +547,7 @@ class Client(Methods, BaseClient):
|
||||
|
||||
if self.password is None:
|
||||
print("Hint: {}".format(r.hint))
|
||||
self.password = getpass.getpass("Enter password: ")
|
||||
self.password = await ainput("Enter password: ")
|
||||
|
||||
if type(self.password) is str:
|
||||
self.password = r.current_salt + self.password.encode() + r.current_salt
|
||||
|
Loading…
Reference in New Issue
Block a user