only show gitlab signup/login links if gitlab oauth is turned on

Этот коммит содержится в:
JoramWilander
2015-07-22 15:32:39 -04:00
родитель 41bbbbf446
Коммит 56a0a7d1e1
9 изменённых файлов: 46 добавлений и 14 удалений

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

@@ -253,3 +253,14 @@ func IsS3Configured() bool {
return true
}
func GetAllowedAuthServices() []string {
authServices := []string{}
for name, service := range Cfg.SSOSettings {
if service.Allow {
authServices = append(authServices, name)
}
}
return authServices
}