PLT-469 skip redirect if verified email required.

This commit is contained in:
=Corey Hulen
2015-09-29 12:09:18 -07:00
parent c3d9235878
commit 19a71ce00d

View File

@@ -75,7 +75,10 @@ func signupTeam(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
m["follow_link"] = bodyPage.Props["Link"]
if !utils.Cfg.EmailSettings.RequireEmailVerification {
m["follow_link"] = bodyPage.Props["Link"]
}
w.Header().Set("Access-Control-Allow-Origin", " *")
w.Write([]byte(model.MapToJson(m)))
}