mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix telegram login (derp!)
This commit is contained in:
parent
63047eb124
commit
b1bca1374d
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
from . import audio, bots, commands, database, network, utils, error, web
|
from . import audio, bots, commands, database, network, utils, error, web
|
||||||
|
|
||||||
version = "5.0a17"
|
version = "5.0a18"
|
||||||
|
|
||||||
__all__ = ["audio", "bots", "commands", "database", "network", "utils", "error", "web"]
|
__all__ = ["audio", "bots", "commands", "database", "network", "utils", "error", "web"]
|
||||||
|
|
|
@ -22,7 +22,7 @@ def tglogin_done():
|
||||||
for field in f.request.args:
|
for field in f.request.args:
|
||||||
if field == "hash":
|
if field == "hash":
|
||||||
continue
|
continue
|
||||||
data_check_string += f"{field}={f.request.args['field']}\n"
|
data_check_string += f"{field}={f.request.args[field]}\n"
|
||||||
data_check_string.rstrip("\n")
|
data_check_string.rstrip("\n")
|
||||||
secret_key = hashlib.sha256(f.current_app.config["TG_AK"])
|
secret_key = hashlib.sha256(f.current_app.config["TG_AK"])
|
||||||
hex_data = hmac.new(key=secret_key, msg=data_check_string, digestmod="sha256").hexdigest()
|
hex_data = hmac.new(key=secret_key, msg=data_check_string, digestmod="sha256").hexdigest()
|
||||||
|
|
Loading…
Reference in a new issue