diff --git a/internal/app/service/mail.go b/internal/app/service/mail.go index 1cf7122..03aeb3e 100644 --- a/internal/app/service/mail.go +++ b/internal/app/service/mail.go @@ -44,7 +44,7 @@ func NewMail() *Mail { mail = &Mail{ templates: defaultTemplates, } - OptRegister("email", mail.Boot) + OptRegister("core.email", mail.Boot) }) return mail } diff --git a/internal/pkg/bind/token.go b/internal/pkg/bind/token.go index efd4290..bf40294 100644 --- a/internal/pkg/bind/token.go +++ b/internal/pkg/bind/token.go @@ -2,6 +2,6 @@ package bind type BodyToken struct { Email string `json:"email" binding:"required"` - Password string `json:"password" binding:"required"` + Password string `json:"password"` Captcha string `json:"captcha"` }