only show gitlab signup/login links if gitlab oauth is turned on
Этот коммит содержится в:
@@ -188,6 +188,7 @@ func login(c *api.Context, w http.ResponseWriter, r *http.Request) {
|
||||
page := NewHtmlTemplatePage("login", "Login")
|
||||
page.Props["TeamDisplayName"] = team.DisplayName
|
||||
page.Props["TeamName"] = teamName
|
||||
page.Props["AuthServices"] = model.ArrayToJson(utils.GetAllowedAuthServices())
|
||||
page.Render(c, w)
|
||||
}
|
||||
|
||||
@@ -274,6 +275,7 @@ func signupUserComplete(c *api.Context, w http.ResponseWriter, r *http.Request)
|
||||
page.Props["TeamId"] = props["id"]
|
||||
page.Props["Data"] = data
|
||||
page.Props["Hash"] = hash
|
||||
page.Props["AuthServices"] = model.ArrayToJson(utils.GetAllowedAuthServices())
|
||||
page.Render(c, w)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user