Skip to content

Instantly share code, notes, and snippets.

@h4ndzdatm0ld
Created May 26, 2020 17:04
Show Gist options
  • Save h4ndzdatm0ld/608910f6a565a6326af6aceb39aaa83e to your computer and use it in GitHub Desktop.
Save h4ndzdatm0ld/608910f6a565a6326af6aceb39aaa83e to your computer and use it in GitHub Desktop.
credentials
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