Merge pull request #861 from mattermost/PLT-469

PLT-469 skip redirect if verified email required.
Этот коммит содержится в:
Harrison Healey
2015-09-29 17:25:29 -04:00
родитель 942702ff1a 19a71ce00d
Коммит 9aef3836b3

Просмотреть файл

@@ -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)))
}