Make sure to log errors when failing to send emails (#6754)

Этот коммит содержится в:
Joram Wilander
2017-06-28 12:07:52 -04:00
коммит произвёл GitHub
родитель 28e0b8dc27
Коммит 7bde11d21b
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@@ -1016,10 +1016,10 @@ func sendVerificationEmail(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
app.SendEmailVerification(user)
err = app.SendEmailVerification(user)
if err != nil {
// Don't want to leak whether the email is valid or not
l4g.Error("Unable to create email verification token: " + err.Error())
l4g.Error(err.Error())
ReturnStatusOK(w)
return
}