mirror of
https://github.com/1f349/orchid.git
synced 2024-12-21 23:54:12 +00:00
Use update registration instead
This commit is contained in:
parent
f680332340
commit
572325f7bf
@ -364,7 +364,7 @@ func (s *Service) setupLegoClient(localData *localCertData) (*lego.Client, error
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make sure the LetsEncrypt account is registered
|
// make sure the LetsEncrypt account is registered
|
||||||
register, err := client.Registration.Register(registration.RegisterOptions{TermsOfServiceAgreed: true})
|
register, err := client.Registration.UpdateRegistration(registration.RegisterOptions{TermsOfServiceAgreed: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to update account registration: %w", err)
|
return nil, fmt.Errorf("failed to update account registration: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user