mirror of
https://github.com/dnote/dnote
synced 2026-03-16 07:25:49 +01:00
Fix email type (#353)
This commit is contained in:
parent
292dc7d515
commit
9744a21789
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ func (a *App) createResetToken(w http.ResponseWriter, r *http.Request) {
|
|||
HandleError(w, errors.Wrap(err, "executing reset password email template").Error(), nil, http.StatusInternalServerError)
|
||||
}
|
||||
|
||||
if err := a.EmailBackend.Queue("Reset your password", "sung@getdnote.com", []string{params.Email}, "text/html", body); err != nil {
|
||||
if err := a.EmailBackend.Queue("Reset your password", "sung@getdnote.com", []string{params.Email}, "text/plain", body); err != nil {
|
||||
HandleError(w, errors.Wrap(err, "queueing email").Error(), nil, http.StatusInternalServerError)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue