mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Function name changed in lego
This commit is contained in:
parent
f24ecee603
commit
2e5eb63850
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ func newClient(leEmail string) (*acme.Client, error) {
|
||||||
leUser.Registration = reg
|
leUser.Registration = reg
|
||||||
|
|
||||||
// TODO: we can just do the agreement once: when registering, right?
|
// TODO: we can just do the agreement once: when registering, right?
|
||||||
err = client.AgreeToTos()
|
err = client.AgreeToTOS()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
saveUser(leUser) // TODO: Might as well try, right? Error check?
|
saveUser(leUser) // TODO: Might as well try, right? Error check?
|
||||||
return nil, errors.New("error agreeing to terms: " + err.Error())
|
return nil, errors.New("error agreeing to terms: " + err.Error())
|
||||||
|
|
Loading…
Reference in a new issue