Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Muuttujiksi nämä, niin niitä on helpompi vaihtaa
- MASTER_USERNAME = 'iita'
- MASTER_PASSWORD = 'iita'
- SECURITY_LOCKDOWN_COUNT = 4
- try = 0
- isCorrect = False
- while try < SECURITY_LOCKDOWN_COUNT and not isCorrect:
- ## ask new password
- print('Authenticate to Iita system')
- name = input('Name')
- password = input('Password')
- ## check if correct
- if name.lower() == MASTER_USERNAME and password.lover() == MASTER_PASSWORD:
- isCorrect = True
- else:
- print('Incorret authentication')
- if isCorrext:
- print('Authentication OK')
- else:
- print('System has been locked')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement