Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. def main():
  2. users=['ari']
  3. passwords=['rycbar1234']
  4. # This is the "title screen"
  5. print('_____This is a password keeper_____')
  6. # checking if the user has an account
  7. actCheck = input('Do you already have an account?')
  8. if actCheck == 'Yes' or actCheck == 'yes':
  9. # asking for user's name and password
  10. yourUser = input('___What is your Username?___')
  11. yourPass = input('___What is your Password?___')
  12. if (yourUser in users and yourPass in passwords):
  13. dirCheck = input('Account settings?[y,n]')
  14. if dirCheck == 'y' or dirCheck == 'Y':
  15. # This is the start of the password/username thing
  16. print('this function is not working yet!')
  17. actSetCheck = input('Change username or password?')
  18. if (
  19. actSetCheck == 'user' or actSetCheck == 'User' or actSetCheck == 'Username' or actSetCheck == 'username'):
  20. yourNewUser = input('What would you like your new username to be?')
  21. elif (
  22. actSetCheck == 'pass' or actSetCheck == 'Pass' or actSetCheck == 'password' or actSetCheck == 'Password'):
  23. yourNewPass = input('What would you like your new password to be?')
  24. elif dirCheck == 'n' or dirCheck == 'N':
  25. request()
  26. # incorrect password thing
  27. else:
  28. print('Incorrect Username or password')
  29. else:
  30. print('This function is not working yet!')
  31. createAct = input('Would you like to create one?')
  32. if createAct == 'yes' or createAct == 'Yes':
  33. createUser = input('What would you like your username to be?')
  34. createPass = input('What would you like your password to be?')
  35. users.append(createUser)
  36. passwords.
  37.  
  38. else:
  39. main()
  40.  
  41.  
  42. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement