Fix email type (#353)

This commit is contained in:
Sung Won Cho 2019-11-29 18:29:12 +08:00 committed by GitHub
commit 9744a21789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}