Update final.py

parent 10fb77e2
......@@ -111,4 +111,22 @@ def authenticate(checkPayload, refPayload):
print("Authentication Successful!")
else:
print("Unsuccessful Authentication!")
\ No newline at end of file
print("Unsuccessful Authentication!")
# Obtain Passphrase
def getPassphrase():
passphrase1 = getpass(prompt = 'Please enter a one-time passphrase of your choice: ')
passphrase2 = getpass(prompt = 'Re-enter the one-time passphrase: ')
if passphrase1 == passphrase2:
pass
else:
print("Error! Mismatching passphrases.")
passphrase1 == passphrase2 == ''
passphrase()
return passphrase1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment