diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-09-25 22:44:55 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-09-25 22:44:55 +0500 |
commit | 4667d8c61e458f9f24690fd766e7beb8887c84ce (patch) | |
tree | f9a125f7c9fd29027064299b9ea5c90aed1ee5af /web/web.go | |
parent | 9d1dddb7f4cd6ee9682bb48d88f5f0271a72dcba (diff) | |
parent | 73cdee70d7bcba367ff006ce1ce6a6d50ccbf3e7 (diff) | |
download | chat-4667d8c61e458f9f24690fd766e7beb8887c84ce.tar.gz chat-4667d8c61e458f9f24690fd766e7beb8887c84ce.tar.bz2 chat-4667d8c61e458f9f24690fd766e7beb8887c84ce.zip |
Merge branch 'master' of https://github.com/mattermost/platform into plt-366
Diffstat (limited to 'web/web.go')
-rw-r--r-- | web/web.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/web/web.go b/web/web.go index 1e435d47f..da7eff13d 100644 --- a/web/web.go +++ b/web/web.go @@ -145,8 +145,14 @@ func root(c *api.Context, w http.ResponseWriter, r *http.Request) { return } - page := NewHtmlTemplatePage("signup_team", "Signup") - page.Render(c, w) + if len(c.Session.UserId) == 0 { + page := NewHtmlTemplatePage("signup_team", "Signup") + page.Render(c, w) + } else { + page := NewHtmlTemplatePage("home", "Home") + page.Props["TeamURL"] = c.GetTeamURL() + page.Render(c, w) + } } func signup(c *api.Context, w http.ResponseWriter, r *http.Request) { |