some changes

This commit is contained in:
2026-04-07 09:01:13 -04:00
parent 740faccf37
commit 489ed23be3
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# LOGIN CLIENT
# HANDLES ACCOUNT CREATION AND VERIFICATION
from pathlib import Path
from datetime import datetime
import time
# Sets the universal current path
script_dir = Path(__file__).parent
def login_logic():
while True:
print("LOGIN CLIENT")
print("[1] Login [2] Sign in")
login_choice = input(" > ")
if login_choice == "1":
login_username = input("Username > ")
login_password = input("Password > ")
# Get current time (request identifier)
timestamp_ms = int(time.time() * 1000)
# Create a request
with open(script_dir / "requests" / f"{timestamp_ms}.txt", "w") as request:
request.write(f"LOGIN:{login_username}:{login_password}")
# The main thing
if __name__ == "__main__":
login_logic()