Skip to content

Commit

Permalink
Merge branch 'issue_241_include_contact_in_registration'
Browse files Browse the repository at this point in the history
  • Loading branch information
diafygi committed Aug 22, 2021
2 parents 447652a + ffad759 commit ce0bbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme_tiny.py
Expand Up @@ -107,7 +107,7 @@ def _poll_until_not(url, pending_statuses, err_msg):

# create account, update contact details (if any), and set the global key identifier
log.info("Registering account...")
reg_payload = {"termsOfServiceAgreed": True}
reg_payload = {"termsOfServiceAgreed": True} if contact is None else {"termsOfServiceAgreed": True, "contact": contact}
account, code, acct_headers = _send_signed_request(directory['newAccount'], reg_payload, "Error registering")
log.info("{0} Account ID: {1}".format("Registered!" if code == 201 else "Already registered!", acct_headers['Location']))
if contact is not None:
Expand Down

0 comments on commit ce0bbdb

Please sign in to comment.