From 828740282790a6a588613277ae3c969db2342c9c Mon Sep 17 00:00:00 2001 From: saltbo Date: Wed, 7 Jul 2021 22:59:51 +0800 Subject: [PATCH] fix: error for the password-reset for the user #105 --- internal/app/service/mail.go | 2 +- internal/pkg/bind/token.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"` }