Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Administrator accounts list
- adminList = [
- {
- "username": "DaBigBoss",
- "password": "DaBest"
- },
- {
- "username": "root",
- "password": "toor"
- }
- ]
- def getCreds():
- username = input("USERNAME: ")
- password = input("PASSWORD: ")
- userInfo = {
- "username" : username,
- "password" : password
- }
- return userInfo
- def checkLogin(userInfo,adminList):
- global loggedIn
- if userInfo in adminList:
- loggedIn = True
- print("YOU HAVE LOGGED IN!")
- return loggedIn
- else:
- loggedIn = False
- return loggedIn
- getCreds()
- checkLogin(" ", " ")
- while loggedIn == False:
- getCreds()
- checkLogin(" ", " ")
- print("---------")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement