Skip to content

Commit fa03c40

Browse files
authored
Merge branch 'KeyAuth:main' into main
2 parents d84431b + d41f9e9 commit fa03c40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

keyauth.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ def init(self):
6161

6262
response = encryption.decrypt(response, self.secret, init_iv)
6363
json = jsond.loads(response)
64+
65+
if json["message"] == "invalidver":
66+
if json["download"] != "":
67+
print("New Version Available")
68+
download_link = json["download"]
69+
os.system(f"start {download_link}")
70+
sys.exit()
71+
else:
72+
print("Invalid Version, Contact owner to add download link to latest app version")
73+
sys.exit()
6474

6575
if json["message"] == "invalidver":
6676
if json["download"] != "":

0 commit comments

Comments
 (0)