Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defusername ='jhoonwak'
- defpassword ='mcomembers'
- while (True):
- username = input('Username:')
- password = input('Password:')
- if ((username == defusername) and (password == defpassword)):
- print('Welcome', username)
- break
- elif ((username != defusername) and (password == defpassword)):
- print('The username that you have entered does not match any account')
- elif ((username == defusername) and (password != defpassword)):
- print('Forgotten account?')
- print('Resetting Your Password?(y/n)')
- answer = input()
- if (answer == 'y'):
- newpassword = input('New Password:')
- defpassword = newpassword
- print('Your password has been changed')
- else:
- print('Please try again')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement