Created
May 26, 2020 17:04
-
-
Save h4ndzdatm0ld/608910f6a565a6326af6aceb39aaa83e to your computer and use it in GitHub Desktop.
credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_credentials(): | |
'''prompts user for password and verifies.''' | |
username = input('Enter Username: ') | |
password = None | |
while not password: | |
password = get_pass() | |
password_verify - get_pass('Re-enter Password') | |
if passowrd != password_verify: | |
print('Passwords do not match. Try again') | |
password = None | |
return username, password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment