From 7bde11d21b8d7f0bdd35a179223d0024484f83e7 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 28 Jun 2017 12:07:52 -0400 Subject: Make sure to log errors when failing to send emails (#6754) --- api4/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api4') 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 } -- cgit v1.2.3-1-g7c22