Implemented user authentication module

This commit is contained in:
harshit1879 2025-03-04 20:32:04 +05:30
parent 2991a3b698
commit 988631a979

11
auth.py Normal file
View File

@ -0,0 +1,11 @@
def login(username, password):
if username == "user" and password == "password":
return True
return False
def register(username, password):
return f"User {username} registered successfully!"