mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Fix infinite loop in case a flood wait is triggered
This commit is contained in:
parent
a662c1734f
commit
5b7459cb71
1 changed files with 3 additions and 1 deletions
|
|
@ -299,7 +299,9 @@ class Client:
|
||||||
print("Hint: {}".format(r.hint))
|
print("Hint: {}".format(r.hint))
|
||||||
self.password = input("Enter password: ") # TODO: Use getpass
|
self.password = input("Enter password: ") # TODO: Use getpass
|
||||||
|
|
||||||
self.password = r.current_salt + self.password.encode() + r.current_salt
|
if type(self.password) is str:
|
||||||
|
self.password = r.current_salt + self.password.encode() + r.current_salt
|
||||||
|
|
||||||
password_hash = sha256(self.password).digest()
|
password_hash = sha256(self.password).digest()
|
||||||
|
|
||||||
r = self.send(functions.auth.CheckPassword(password_hash))
|
r = self.send(functions.auth.CheckPassword(password_hash))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue