Skip to content

Commit

Permalink
fix: error for the password-reset for the user #105
Browse files Browse the repository at this point in the history
  • Loading branch information
saltbo committed Jul 7, 2021
1 parent 35ff8a0 commit 8287402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/app/service/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewMail() *Mail {
mail = &Mail{
templates: defaultTemplates,
}
OptRegister("email", mail.Boot)
OptRegister("core.email", mail.Boot)
})
return mail
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/bind/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 8287402

Please sign in to comment.