mirror of
https://github.com/octocat/Hello-World.git
synced 2026-06-17 09:07:50 +00:00
Added login function
This commit is contained in:
parent
9ba29ffb54
commit
e5da0f477c
1 changed files with 7 additions and 0 deletions
7
login.py
Normal file
7
login.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
def login(username, password):
|
||||
if username == "admin" and password == "1234":
|
||||
return "Login Successful"
|
||||
else:
|
||||
return "Invalid Username or Password"
|
||||
|
||||
print(login("admin", "1234"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue