summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-28 12:07:52 -0400
committerGitHub <noreply@github.com>2017-06-28 12:07:52 -0400
commit7bde11d21b8d7f0bdd35a179223d0024484f83e7 (patch)
treebf5ad9ddb8d7ce3d9683e17046a57db8b240ac7d /api4
parent28e0b8dc27e71c4b383f49db3be2a31088924bf1 (diff)
downloadchat-7bde11d21b8d7f0bdd35a179223d0024484f83e7.tar.gz
chat-7bde11d21b8d7f0bdd35a179223d0024484f83e7.tar.bz2
chat-7bde11d21b8d7f0bdd35a179223d0024484f83e7.zip
Make sure to log errors when failing to send emails (#6754)
Diffstat (limited to 'api4')
-rw-r--r--api4/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/user.go b/api4/user.go
index 69bea945a..24c1c917b 100644
--- a/api4/user.go
+++ b/api4/user.go
@@ -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
}