Skip to content

Commit 842f478

Browse files
committed
Now it actually works
1 parent 755f77f commit 842f478

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

keyauth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ def login(self, key, hwid=None):
8585

8686
if response == "KeyAuth_Valid":
8787
print("Logged in")
88-
if response == "KeyAuth_Invalid":
88+
elif response == "KeyAuth_Invalid":
8989
print("Key not found")
9090
if os.path.exists(KEYSAVE_PATH):
9191
os.remove(KEYSAVE_PATH)
9292
sys.exit()
93-
if response == "KeyAuth_InvalidHWID":
93+
elif response == "KeyAuth_InvalidHWID":
9494
print("This computer doesn't match the computer the key is locked to. If you reset your computer, contact the application owner")
9595
if os.path.exists(KEYSAVE_PATH):
9696
os.remove(KEYSAVE_PATH)
9797
sys.exit()
98-
if response == "KeyAuth_Expired":
98+
elif response == "KeyAuth_Expired":
9999
print("This key is expired")
100100
if os.path.exists(KEYSAVE_PATH):
101101
os.remove(KEYSAVE_PATH)

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
if os.path.exists(KEYSAVE_PATH):
1414
with open (KEYSAVE_PATH, "r") as file:
15-
data = file.readlines()
15+
data = file.readline()
1616
keyauthapp.login(data)
1717
else:
1818
key = input('Enter your key: ')

0 commit comments

Comments
 (0)