diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-08-12 07:50:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-12 07:50:35 -0400 |
commit | 7da58ceb9bc7ff2c739ecf9c61062ceaa9197181 (patch) | |
tree | 17de631f460acb7b90d5efd138cb6976829c5942 /api | |
parent | 53c068952cd11b2997ba706ec0d921c5be4d9f26 (diff) | |
download | chat-7da58ceb9bc7ff2c739ecf9c61062ceaa9197181.tar.gz chat-7da58ceb9bc7ff2c739ecf9c61062ceaa9197181.tar.bz2 chat-7da58ceb9bc7ff2c739ecf9c61062ceaa9197181.zip |
Send verification email if user has never logged in, send email changed email otherwise (#3759)
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/user.go b/api/user.go index 5f3060b1e..6b9aa4f64 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()) } } } |