mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2026-04-27 20:21:40 +00:00
Implemented user authentication module
This commit is contained in:
parent
2991a3b698
commit
988631a979
1 changed files with 11 additions and 0 deletions
11
auth.py
Normal file
11
auth.py
Normal 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!"
|
||||
Loading…
Add table
Reference in a new issue