From 7da58ceb9bc7ff2c739ecf9c61062ceaa9197181 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 12 Aug 2016 07:50:35 -0400 Subject: [PATCH] Send verification email if user has never logged in, send email changed email otherwise (#3759) --- api/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/user.go b/api/user.go index 5f3060b1ee..6b9aa4f648 100644 --- a/api/user.go +++ b/api/user.go @@ -2321,9 +2321,9 @@ func resendVerification(c *Context, w http.ResponseWriter, r *http.Request) { return } else { if _, err := GetStatus(user.Id); err != nil { - go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL()) - } else { go SendVerifyEmail(c, user.Id, user.Email, c.GetSiteURL()) + } else { + go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL()) } } }