diff options
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/api/user.go b/api/user.go index 11794a7c4..bd718e956 100644 --- a/api/user.go +++ b/api/user.go @@ -2263,12 +2263,10 @@ func resendVerification(c *Context, w http.ResponseWriter, r *http.Request) { return } - if result := <-Srv.Store.User().GetByEmail(email); result.Err != nil { - c.Err = result.Err + if user, error := getUserForLogin(email, false); error != nil { + c.Err = error return } else { - user := result.Data.(*model.User) - if user.LastActivityAt > 0 { go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL()) } else { |