diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-29 12:09:18 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-29 12:09:18 -0700 |
commit | 19a71ce00d3d45c9e1712352544ed3edced1b255 (patch) | |
tree | e473c9ce0176ce345c5e015e20819346322f5dbb | |
parent | c3d9235878fb86f6aca4ad6b78c7589e3cb15d31 (diff) | |
download | chat-19a71ce00d3d45c9e1712352544ed3edced1b255.tar.gz chat-19a71ce00d3d45c9e1712352544ed3edced1b255.tar.bz2 chat-19a71ce00d3d45c9e1712352544ed3edced1b255.zip |
PLT-469 skip redirect if verified email required.
-rw-r--r-- | api/team.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go index 4794b66df..fba4b41c6 100644 --- a/api/team.go +++ b/api/team.go @@ -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))) } |