Skip to content

Commit

Permalink
Merge 5334244 into 1d75a12
Browse files Browse the repository at this point in the history
  • Loading branch information
adusca committed Aug 17, 2015
2 parents 1d75a12 + 5334244 commit ab75d0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mozci/utils/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ def get_credentials():
https_username = content[0].strip()
https_password = keyring.get_password("mozci", https_username)
if https_password is None or https_password == "":
https_password = getpass.getpass("Input Password: ")
https_password = getpass.getpass(
"Input LDAP password for user %s: " % https_username)
else:
https_username = raw_input(
"Please enter your full LDAP email address: ")
https_password = getpass.getpass()
store_password = raw_input(
"Do you want to store your password in encrypted form (y or n)?")
"Do you want to store your password in encrypted form (y or n)? ")

with open(CREDENTIALS_PATH, "w+") as file_handler:
file_handler.write("%s\n" % https_username)
Expand Down

0 comments on commit ab75d0a

Please sign in to comment.