mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
Merge pull request #2864 from siwyd/fix-updating-empty-email
Fix: allow removal of email address as contact
This commit is contained in:
commit
ef5ffa939f
2
acme.sh
2
acme.sh
@ -3512,6 +3512,8 @@ updateaccount() {
|
|||||||
if [ "$ACME_VERSION" = "2" ]; then
|
if [ "$ACME_VERSION" = "2" ]; then
|
||||||
if [ "$ACCOUNT_EMAIL" ]; then
|
if [ "$ACCOUNT_EMAIL" ]; then
|
||||||
updjson='{"contact": ["mailto:'$ACCOUNT_EMAIL'"]}'
|
updjson='{"contact": ["mailto:'$ACCOUNT_EMAIL'"]}'
|
||||||
|
else
|
||||||
|
updjson='{"contact": []}'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# ACMEv1: Updates happen the same way a registration is done.
|
# ACMEv1: Updates happen the same way a registration is done.
|
||||||
|
Loading…
Reference in New Issue
Block a user