mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:25:24 +02:00
Save the updated registration
This commit is contained in:
+3
-2
@@ -396,9 +396,10 @@ def register(config, unused_plugins):
|
||||
"required\n(hint: --email)")
|
||||
acc, acme = _determine_account(config)
|
||||
acme_client = client.Client(config, acc, None, None, acme=acme)
|
||||
acme_client.acme.update_registration(acc.regr.update(
|
||||
body=acc.regr.body.update(contact=('mailto:' + config.email,))))
|
||||
# We rely on an exception to interrupt this process if it didn't work.
|
||||
acc.regr = acme_client.acme.update_registration(acc.regr.update(
|
||||
body=acc.regr.body.update(contact=('mailto:' + config.email,))))
|
||||
account_storage.save_regr(account)
|
||||
reporter_util = zope.component.getUtility(interfaces.IReporter)
|
||||
msg = "Your e-mail address was updated to {0}.".format(config.email)
|
||||
reporter_util.add_message(msg, reporter_util.MEDIUM_PRIORITY)
|
||||
|
||||
Reference in New Issue
Block a user