stvtermux 1.0.4__py3-none-any.whl → 1.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stvtermux/core.py +5 -5
- {stvtermux-1.0.4.dist-info → stvtermux-1.0.5.dist-info}/METADATA +1 -1
- stvtermux-1.0.5.dist-info/RECORD +9 -0
- stvtermux-1.0.4.dist-info/RECORD +0 -9
- {stvtermux-1.0.4.dist-info → stvtermux-1.0.5.dist-info}/WHEEL +0 -0
- {stvtermux-1.0.4.dist-info → stvtermux-1.0.5.dist-info}/entry_points.txt +0 -0
- {stvtermux-1.0.4.dist-info → stvtermux-1.0.5.dist-info}/top_level.txt +0 -0
stvtermux/core.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import requests
|
2
2
|
import json
|
3
3
|
import subprocess
|
4
|
+
import os
|
4
5
|
|
5
6
|
FIREBASE_URL = "https://sever-login-ae5cc-default-rtdb.firebaseio.com/player.json"
|
6
7
|
|
@@ -38,11 +39,10 @@ class Auth:
|
|
38
39
|
for _, user in data.items():
|
39
40
|
if user.get("username") == username and user.get("password") == password:
|
40
41
|
print("✅ Đăng nhập thành công!")
|
41
|
-
|
42
|
+
# 👉 Lấy đường dẫn tuyệt đối tới index.py trong package
|
43
|
+
module_path = os.path.join(os.path.dirname(__file__), "index.py")
|
44
|
+
subprocess.run(["python", module_path])
|
42
45
|
return True
|
43
46
|
|
44
47
|
print("❌ Sai username hoặc password!")
|
45
|
-
return False
|
46
|
-
|
47
|
-
|
48
|
-
|
48
|
+
return False
|
@@ -0,0 +1,9 @@
|
|
1
|
+
stvtermux/__init__.py,sha256=bk7kIC3tSACeEbiYSYrJEpHxwr6DswGbO-18EF-MDwM,45
|
2
|
+
stvtermux/cli.py,sha256=pmjeY6GyZMqPiXN_lzdrScaG5gBFtS7EHlhmb_Ld1PM,544
|
3
|
+
stvtermux/core.py,sha256=mTFyeko7yw9b38ZV6mDMcWC7L83Rbn3cPjAJUi2xhHY,1798
|
4
|
+
stvtermux/index.py,sha256=b4WvMdOSmzZJHQer2qTuPA60KfZ8TMHTtuB9z44zdaI,51
|
5
|
+
stvtermux-1.0.5.dist-info/METADATA,sha256=-_EjYdHcugOoV9gNUsLTCXBwrXLmYm5aW6KQcGTS5G0,100
|
6
|
+
stvtermux-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
stvtermux-1.0.5.dist-info/entry_points.txt,sha256=7b0IuLqKSWL2VMJxcTdMLZXBaPfYT1atz6wwBTqco9Q,43
|
8
|
+
stvtermux-1.0.5.dist-info/top_level.txt,sha256=6krSSYES7OG83FeLt7MWD5vG8MOwzYh_K3ju8lBNqwg,10
|
9
|
+
stvtermux-1.0.5.dist-info/RECORD,,
|
stvtermux-1.0.4.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
stvtermux/__init__.py,sha256=bk7kIC3tSACeEbiYSYrJEpHxwr6DswGbO-18EF-MDwM,45
|
2
|
-
stvtermux/cli.py,sha256=pmjeY6GyZMqPiXN_lzdrScaG5gBFtS7EHlhmb_Ld1PM,544
|
3
|
-
stvtermux/core.py,sha256=9SNhmGLpi8aV1hgJhT1Tl_SAcybjzge5H_GrgfLCC-g,1621
|
4
|
-
stvtermux/index.py,sha256=b4WvMdOSmzZJHQer2qTuPA60KfZ8TMHTtuB9z44zdaI,51
|
5
|
-
stvtermux-1.0.4.dist-info/METADATA,sha256=GhaQNaRmZCWWyON6fRzxK_KXQQly3rRjX7jkrEu12p0,100
|
6
|
-
stvtermux-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
stvtermux-1.0.4.dist-info/entry_points.txt,sha256=7b0IuLqKSWL2VMJxcTdMLZXBaPfYT1atz6wwBTqco9Q,43
|
8
|
-
stvtermux-1.0.4.dist-info/top_level.txt,sha256=6krSSYES7OG83FeLt7MWD5vG8MOwzYh_K3ju8lBNqwg,10
|
9
|
-
stvtermux-1.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|