diff options
Diffstat (limited to 'api4')
-rw-r--r-- | api4/user.go | 4 |
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 } |